X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/b4b35f2f10d8e226145f6cc0e0c46c6d7e12c17f..155aa12bf98cebcf77fa2720fd6518c47ca7716a:/packages/tmux/tmux.conf diff --git a/packages/tmux/tmux.conf b/packages/tmux/tmux.conf index 207e5b59..4ec5976f 100644 --- a/packages/tmux/tmux.conf +++ b/packages/tmux/tmux.conf @@ -1,2 +1,7 @@ set -g mouse on set -s escape-time 0 + +# Version 2.1 of tmux removed mouse wheel scrolling support by default, +# but these two lines from https://github.com/tmux/tmux/issues/145 add it back: +bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'" +bind -n WheelDownPane select-pane -t= \; send-keys -M