NHDaly / tmux-better-mouse-mode

A tmux plugin to better manage and configure the mouse.
MIT License
916 stars 27 forks source link

Regressions in 2.4, 2.5: @scroll-without-changing-pane and @scroll-speed-num-lines-per-scroll #33

Closed NHDaly closed 7 years ago

NHDaly commented 7 years ago

See #32:

More regressions:

NHDaly commented 7 years ago

Actually, lots of compatibility problems. Probably started in v2.4. Put the check-list in the first comment.

henrythiemann commented 7 years ago

Regarding @scroll-speed-num-lines-per-scroll, I found something in the tmux changelog that may help (from the 2.3 to 2.4 changes):

The emacs-copy and vi-copy tables have been replaced by the copy-mode and
copy-mode-vi tables. Commands are sent using the -X and -N flags to
send-keys. So the following:

  bind -temacs-copy C-Up scroll-up
  bind -temacs-copy -R5 WheelUpPane scroll-up

Becomes:

  bind -Tcopy-mode C-Up send -X scroll-up
  bind -Tcopy-mode WheelUpPane send -N5 -X scroll-up

I was able to set it to scroll one line at a time using:

bind -Tcopy-mode WheelUpPane send -N1 -X scroll-up
bind -Tcopy-mode WheelDownPane send -N1 -X scroll-down
NHDaly commented 7 years ago

Beautiful, thank you. I just came across this myself, and was gonna try it; thanks for doing that for me! :)

It looks like i'll finally have to start adding some version checks in the script of the sort "if version >= 2.4, do this, else do that." :(

Probably about time, though... I'll take off the help-wanted tag for now while I look into that, then. Thanks!! :)

NHDaly commented 7 years ago

Fixed scroll speed, but it's still broken for partial scroll speeds (speeds < 1).

Thanks @henrythiemann

NHDaly commented 7 years ago

It looks like that last commit also fixed @scroll-without-changing-pane. So that's good.

@scroll-in-moused-over-pane doesn't work now though (it's always set to true). I've updated the check-boxes at the top. Also @scroll-down-exit-copy-mode. (never exits)

NHDaly commented 7 years ago

Okay! haha sorry for the spam. I think actually the last commit fixed everything. It all seems to work for me now in v2.4! :)

I think my testing had just messed up some of the bindings and I didn't realize it. After a tmux reset, all the options seem to work for me now! :) Thanks!

NHDaly commented 7 years ago

Let me know if anyone else still has problems.