We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.

robrecord • 7 years ago

What version is this for? Apparently tmux scroll behaviour changed from 2.0 to 2.1, then again in 2.2.

ksikluks • 9 years ago

This can't work. If you bind -n WheelUpPane to enter copy-mode, this will also be the action when you are _inside_ copy-mode. It basically overrides the action of scrolling with "enter copy-mode".
You can see it if you use WheelDownPane instead. It will enter copy-mode on scroll down and you can now scroll back in history, but never the opposite way.

C Wu • 10 years ago

I like your patch. Maybe you'd better make a pull request to tmux source.

yes please, on linux and would love that

dcrystalj • 10 years ago

to enter in scroll mode this really works for me:

bind -n WheelUpPane copy-mode

but then it doesnt scroll anymore, i have to use pgUp/pgDown and it was working before. I use tmux 2.1

nhdaly@gmail.com • 10 years ago

Same here. I'm on tmux 2.1, Macbook, and iTerm.

Hywan • 10 years ago

Adding the `-e` option to `copy-mode` will exit when reaching the bottom of the history.
Consequently: `bind-key -n WheelUpPane copy-mode -e`.

However, I have the same issue than dcrystalj. It does not scroll.

ghshephard • 10 years ago

Thanks Tons for the excellent tips. Just installed TMUX 2.1, and lost all of my mouse configuration (which you got back for me with the mouse option hint). Particularly appreciate the hint about having to go into copy-mode now. It all works fine.

I couldn't get your "bind -n WheelUpPane copy-mode" to auto-start copy mode - but maybe that's just a MacBook Air touchpad issue (not sending the WheelUpPane command?)

Now, I just have to figure out why tmux 2.1 is no longer honoring keyboard shortcuts from iterm to switch between windows with C-n and C-p (timing issue I suspect)

David • 10 years ago

I'm running a Macbook Pro, I'd assume the touchpads send similar signals. Strange how it's not working for you - maybe a conflict with another config setting? Maybe try loading my tmux config and see if that fixes the problem:

https://github.com/dv/dotfi...

This one definitely works for me, so if that works for you the problem is with your config. It could be that iTerm isn't sending the event through - I'm using Terminal.app.

Unfortunately I don't know anything about your other issue.

ghshephard • 10 years ago

Wow - I just tried Terminal.App for the first time in a year plus, and the TMux 2.1 support is extraordinary. Everything works with just the following lines:

set-option -g history-limit 20000
set-window-option -g mode-keys vi
set-option -g mouse on

Scrolling, Copying, Pasting - it's odd - I'm not sure, but I seem to recall the old version of tmux didn't allow you to scroll back in Terminal.app's scrollback buffer seemlessly, but perhaps I'm forgetting something. Regardless, this *doesn't* work in iTerm, so, at least right now - advantage Terminal.app.

David • 10 years ago

Awesome that it works now!

For Terminal.app to send the mouse events to the apps running inside it, you normally have to patch it using SIMBL and MouseTerm (see my other article: http://www.davidverhasselt.... )

Maybe you already did that in the past, and forgot that you had done it? If not, then it must be a recent update, because I went through the process about a month ago and it was still required.

Either way, glad you got it sorted!