From 012d913901bbc240a0648df9bbaa89b89f398af8 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Fri, 18 Oct 2024 14:52:45 +0200 Subject: [PATCH] tmux: Get rid of "Not in a mode" error The copy command should only be executed when not in a mode (i.e. alternate?). This gets rid of the error message "Not in a mode" when double/triple clicking inside of vim etc.. --- .config/tmux/tmux.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index e4ac745..b42a026 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -54,8 +54,8 @@ bind -n SecondClick1Pane { } { copy-mode send -X select-word + send -X pipe-no-clear "xclip -selection primary" } - send -X pipe-no-clear "xclip -selection primary" } bind -n TripleClick1Pane { @@ -65,8 +65,8 @@ bind -n TripleClick1Pane { } { copy-mode send -X select-line + send -X pipe-no-clear "xclip -selection primary" } - send -X pipe-no-clear "xclip -selection primary" } # Scroll up 5 lines when entering copy-mode through the mouse wheel, send 5x`up`