-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scroll too fast when using tmux #3338
Comments
I think it's not hyper's issue. You might want to adjust your tmux "scrolling speed", it looks like your tmux will jump 5 lines for every scroll. Here's what I could find online on how to do it: https://stackoverflow.com/questions/36002866/configure-tmux-scroll-speed. And this works for me:
|
Doesn’t work for me.
Inov Yomanovian <notifications@github.com>于2019年2月1日 周五19:27写道:
… I think it's not hyper's issue. You might want to adjust your tmux
"scrolling speed", it looks like your tmux will jump 5 lines for every
scroll. Here's what I could find online on how to do it:
https://stackoverflow.com/questions/36002866/configure-tmux-scroll-speed.
And this works for me:
bind -Tcopy-mode WheelUpPane send -N1 -X scroll-up
bind -Tcopy-mode WheelDownPane send -N1 -X scroll-down
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3338 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABAgI-dJH64OyAWG48SxWm36Vraw6DDOks5vJCSXgaJpZM4ZVpDq>
.
|
I'm experiencing similar issues but am not finding much information online. Surely we aren't the only ones with scroll speed issues? FWIW, native hyper without tmux doesn't play well with mouse and vim. I've seen information online supporting this. Seems to just be a bug in hyper or its terminal backend. Updating to Canary did not fix this. Ironically enough, when I incorporated tmux into my workflow, the mouse issues with vim and hyper went away. Except for this scroll speed issue... Perhaps these issues with scroll speed in vim (outside of tmux) and scroll speed in tmux (no vim needed) are related?? Edit: Have a screencast showing the issue in vim/tmux with hyper.js. Screencast shows this working just fine in iterm2. Edit2: Althought #95 was closed out as it was opened against Hyper 1.0/hterm, users reported in that thread that while their issue was fixed in Hyper 2.0/xterm, scroll speed was still an issue. I've verified the scroll speed issue is still present in Hyper 3.0 Canary as well. |
I'm starting to believe it could be an issue down in xterm.js. I guess, based on my limited knowledge of hyper, that it's possible we're passing down bad values to xterm for the scroll wheel. But this seems unlikely. Found the issue linked below and I'm wondering if OP's ticket can be reproduced in a different program that uses xterm.js. Since I can reproduce, I may try to figure that out. |
When I tried these settings, they did not work for me:
I believe because I have tmux set up in vi mode, I needed different binds. I can confirm these tmux settings fixed my tmux scrollback issue:
This still has not fixed my scroll speed issue inside vim (whether inside tmux or not). Edit: gif showing it broken with default 5 line scrolling and then it working as I expected with it set to 1. |
I've discovered a workaround that works for me. Posting here in case it helps someone else. Put this in if "[[ ${TERM_PROGRAM} =~ Hyper || ${TERM_PROGRAM} =~ HyperTerm ]]" 'bind-key -T copy-mode-vi WheelUpPane send -N1 -X scroll-up'
if "[[ ${TERM_PROGRAM} =~ Hyper || ${TERM_PROGRAM} =~ HyperTerm ]]" 'bind-key -T copy-mode-vi WheelDownPane send -N1 -X scroll-down' |
works for me on 3.0.1-canary.4 (canary) && tmux 2.9A.
|
work for me |
Seems to be working fine now |
Issue
Without tmux, scroll once only 1/3 screen. In tmux, scroll once becomes 100x screens(pages). unacceptable. Can't review history because I cannot stop on specific page, scroll rate too fast there.
The text was updated successfully, but these errors were encountered: