From 7d58be4365a6c3db1a7e2d85b4084b73802082d4 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Thu, 8 Sep 2022 15:37:55 +0200 Subject: [PATCH] tmux: Scroll without selecting the pane --- .config/tmux/tmux.conf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index 9c6ef76..41a931a 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -17,8 +17,9 @@ set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q' # `copy-mode`) bind -n WheelUpPane \ if -F "#{||:#{pane_in_mode},#{mouse_any_flag}}" { send -M } { copy-mode -u } -bind -T copy-mode-vi WheelUpPane selectp \; send -XN5 scroll-up -bind -T copy-mode-vi WheelDownPane selectp \; send -XN5 scroll-down +# Scroll without selecting the pane +bind -T copy-mode-vi WheelUpPane send -XN5 scroll-up +bind -T copy-mode-vi WheelDownPane send -XN5 scroll-down # Set C-a as new prefix unbind C-b