John Whitley <
bangpa...@gmail.com> writes:
>I’ve switched to the new tmux 2.1 mouse settings, but I’m finding the lack of first-class scrolling support is a big loss.
>Specifically, I tried the settings proposed by Thomas Sattler in the earlier thread:
> bind -n WheelUpPane select-pane -t= \; copy-mode -e \; send-keys -M
> bind -n WheelDownPane select-pane -t= \; send-keys -M
>I’m not in love with this, as the one-line scrolling is a lot slower. It can be sped up by using "send-keys -M” multiple times in a binding:
All send-keys -M does is cause the mouse event to pass through to be
processed by the copy-mode binding. If you want different scrolling,
change the copy-mode binding for Wheel{Up,Down}Pane to scroll how much
you want it to.
For instance:
bind-key -t vi-copy WheelUpPane halfpage-up
bind-key -t vi-copy WheelDownPane halfpage-down
This will make the mouse wheel scroll half a page at a time.