From 753262d9054342d7c72412959ab9dc026b766c02 Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Fri, 25 Feb 2022 23:18:48 -0500 Subject: [PATCH] tmux: Don't clear selection on activating plumb(1) Combined with the previous hotkeys, this makes it easy to keep my place in a list of things to sort through. For example, say I want to sift through 100 hits of `git grep -n`. I don't want to have to spam `n` every time I plumb! Keeping that split open and the selection in place essentially means I can replace vim-fugitive's :Ggrep with this :O Not that I'm definitely gonna do that--fugitive is awesome. I just could. --- .tmux.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.tmux.conf b/.tmux.conf index 704ce6a..00d0177 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -11,7 +11,7 @@ unbind-key C-b bind-key C-a send-prefix # plumber! `a` in copy-mode sends to the 'plumb' command -bind-key -T copy-mode-vi a send-keys -X copy-pipe-and-cancel "plumb #{pane_current_path}" +bind-key -T copy-mode-vi a send-keys -X copy-pipe-no-clear "plumb #{pane_current_path}" # Less delay on pressing escape (for vim) set-option -sg escape-time 10 -- libgit2 1.1.1