On 2015-05-03 12:07, trondd wrote:
With tmux's mouse changes, everything is set up by default except one
thing I'm trying to get back.  It used to be that if you mouse
scrolled up in a pane, it would enter copy mode and start scrolling up
through history.  It doesn't enter copy mode anymore.  If I enter copy
mode via the keyboard, I can still scroll through history as normal.
However, if I map the mouse WheelUp to copy-mode, it will enter copy
mode but scrolling up goes one or two lines at a time and isn't a
smooth scroll anymore.

This is what I am trying:
bind-key WheelUpPane copy-mode -t =

I imagine it's processing the copy-mode command every 'tick' of the
wheel (it's actually a trackpad) and interrupting the scrolling.  Is
there a configuration solution to this?  Like a way to bind the
command only to not copy-mode?

Tim.

Figured it out. The trick was adding send-keys -M which I couldn't get working before because I didn't know I had to escape the ; between commands. So in case anyone else is interested, the final command is:

bind-key -Troot WheelUpPane copy-mode -t = \; send-keys -M

It's still not perfect, though. Now WheelUp always acts on the pane under the mouse (even when I remove '-t =') while WheelDown acts on the selected pane.

Tim.

Reply via email to