diff --git a/tmux.conf b/tmux.conf index 84d613eb..0be8c967 100644 --- a/tmux.conf +++ b/tmux.conf @@ -17,6 +17,8 @@ set-option -g default-shell $SHELL # a mouse setw -g mouse-utf8 on setw -g mouse on +# fix mouse scrolling: enter copy mode on scroll-up, exits it when scrolled to bottom +bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e'" ## Key bindings ########### # Remap the key prefix