From: Sergey Matveev Date: Fri, 5 Feb 2021 13:27:10 +0000 (+0300) Subject: Workable preview in tmux-path-extractor X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=commitdiff_plain;h=327ed850256befcca102eb1a1cf1d28675a733cc Workable preview in tmux-path-extractor --- diff --git a/bin/bin/tmux-path-extractor.sh b/bin/bin/tmux-path-extractor.sh index 162f0bb..ed2cebc 100755 --- a/bin/bin/tmux-path-extractor.sh +++ b/bin/bin/tmux-path-extractor.sh @@ -1,6 +1,6 @@ #!/bin/sh tmux has-session -t path-extractor && tmux kill-session -t path-extractor || : -tmux new-session -d -s path-extractor "pe < /tmp/tmux-buffer ; tmux detach" +tmux new-session -d -s path-extractor -c "$1" "pe < /tmp/tmux-buffer ; tmux detach" tmux set-option -t path-extractor status off exec tmux attach-session -t path-extractor diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index a107fe2..db063c9 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -60,7 +60,7 @@ bind-key o { capture-pane -J save-buffer /tmp/tmux-buffer delete-buffer - display-popup -KE -w 100% -R "~/bin/tmux-path-extractor.sh" + display-popup -KE -w 100% -R "~/bin/tmux-path-extractor.sh '#{pane_current_path}'" paste-buffer delete-buffer }