From cd11af09812dfe854922eb9cc123d384662e5eea Mon Sep 17 00:00:00 2001 From: Andre Ramnitz Date: Fri, 14 Feb 2025 23:13:21 +0100 Subject: [PATCH] tmux: better scrolling --- dot-tmux.conf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dot-tmux.conf b/dot-tmux.conf index 10622b70..ba4d5896 100644 --- a/dot-tmux.conf +++ b/dot-tmux.conf @@ -1,3 +1,10 @@ +# use prefix-less PageUp if the alternate curses buffer is not used +bind-key -n PPage if -F '#{alternate_on}' 'send-keys PPage' 'copy-mode -eu' + +# enable mouse scrolling (and more) +# refer to https://github.com/tmux/tmux/commit/bf635e7741f7b881f67ec7e4a5caa02f7ff3d786 +set -g mouse on + set -s escape-time 0 set -g base-index 1 set -g pane-base-index 1 -- 2.51.2