From aa901099b04ac9d97314cdeb041e70aca974b4fe Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Mon, 14 Oct 2024 09:38:08 +0200 Subject: [PATCH] tmux: Use C-[ey] for scrolling with the wheel --- .config/tmux/tmux.conf | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index 0b1a385..abc1f81 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -70,19 +70,20 @@ bind -n WheelUpPane { if -F "#{alternate_on}" { send -N5 up } { - copy-mode; send -XN5 scroll-up + copy-mode + send -N5 C-y } } } # Scroll without selecting the pane -bind -T copy-mode-vi WheelUpPane send -XN5 scroll-up +bind -T copy-mode-vi WheelUpPane send -N5 C-y # Exit copy-mode when at the bottom. This practically mimics `copy-mode -e` but # only scrolling with the wheel (`-e` annoys me when scrolling down with `C-d`). bind -T copy-mode-vi WheelDownPane { if -F "#{==:0,#{scroll_position}}" { send -X cancel } { - send -XN5 scroll-down + send -N5 C-e } }