From 50fa9306fddc7b7876a0fe0c332f0b5aef515611 Mon Sep 17 00:00:00 2001 From: Kuba Orlik Date: Sun, 14 Jun 2026 14:49:51 +0200 Subject: [PATCH] Make the scrolling with the mousewheel smooth --- tasks/files/tmux.conf | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/tasks/files/tmux.conf b/tasks/files/tmux.conf index 2b90037..2bddd6a 100644 --- a/tasks/files/tmux.conf +++ b/tasks/files/tmux.conf @@ -1,2 +1,15 @@ # Enable mouse support -set -g mouse on \ No newline at end of file +set -g mouse on + +# make the scrolling smooth +bind-key -T copy-mode-vi WheelUpPane \ + select-pane \; send-keys -X -N 1 scroll-up + +bind-key -T copy-mode-vi WheelDownPane \ + select-pane \; send-keys -X -N 1 scroll-down + +bind-key -T copy-mode \ + WheelUpPane select-pane \; send-keys -X -N 1 scroll-up + +bind-key -T copy-mode \ + WheelDownPane select-pane \; send-keys -X -N 1 scroll-down \ No newline at end of file