X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/59f0d218a6ff34c80cf898f6d7ac62555ba8eb11..e97137242f065544a59bdc917fa428bf0a1ebbd8:/packages/tmux/tmux.conf diff --git a/packages/tmux/tmux.conf b/packages/tmux/tmux.conf index d53cd037..4ec5976f 100644 --- a/packages/tmux/tmux.conf +++ b/packages/tmux/tmux.conf @@ -1,5 +1,7 @@ -set -g mode-mouse on -set -g mouse-select-pane on -set -g mouse-select-window on -set -g mouse-resize-pane on +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