diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index 664bf28..8974471 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -117,6 +117,21 @@ bind -T copy-mode-vi WheelDownPane { } } +# Make mouse wheel scroll down properly in alternate mode +bind -n WheelDownPane { + send -M + if -F "#{||:#{pane_in_mode},#{mouse_any_flag}}" { + send -M + } { + if -F "#{alternate_on}" { + send -N5 down + } { + # we're already at the bottom of the history, so nothing + # needs to be done here + } + } +} + # Split panes with > and < unbind % bind < splitw -v -c "#{pane_current_path}"