From 4b8e877305e456598be5b79cbfb00a923469b62d Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Mon, 26 Aug 2024 12:05:18 +0200 Subject: [PATCH] tmux: Use SecondClick instead of DoubleClick event Make the word selection instant by changing the mouse event. If a third click follows, the selection just changes to the full line. --- .config/tmux/tmux.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index 5aa94bb..e3ead31 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -26,7 +26,7 @@ bind -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe-no-clear "xclip -se p" # Select word or line on double or triple click respectively (w/o aborting). # (These are the defaults w/o the `run -d 0.3; send -X copy-pipe-and-cancel`) -bind -T copy-mode-vi DoubleClick1Pane select-pane -t= \; send -X select-word +bind -T copy-mode-vi SecondClick1Pane select-pane -t= \; send -X select-word bind -T copy-mode-vi TripleClick1Pane select-pane -t= \; send -X select-line bind -n DoubleClick1Pane { select-pane -t=