Skip to content
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

Feature request for comments: Acceleration in mouse wheel -> arrow emulation #36

Open
unphased opened this issue Jan 4, 2018 · 0 comments

Comments

@unphased
Copy link

unphased commented Jan 4, 2018

Thank you for this TPM plugin! I had been thinking about all of the different ways I could bullet-proof my tmux scrolling hack I made a while ago, the main idea was to contextually enable the ability to scroll up in history in a shell (which isn't in alternate window mode) via copy-mode and to naturally pass the event on into alternate window mode programs that enable mouse mode such as vim, and to emulate arrow keys when the alternate mode program doesn't enable mouse mode, such as less. This makes for perfect UX.

This is exactly what you have done and it is a beautiful thing, we can even configure exactly whether doing so in a different pane yanks focus to it or not. I love it so much.

Now, another concept that I was toying with in my mind is some method of addressing the disparity in when I change between using a mouse (with discrete clicks) and a Mac touchpad, which is able to give the control of individual scroll clicks but also effortlessly flick to spam a lot of events.

So far we have config here letting us choose how many lines to scroll for scroll wheel emulation for the copy-mode scrolling and alternate mode arrow key emulation, this is a linear one to one relationship to the mouse event. I was hoping that maybe we could have a configuration that allows for acceleration here. As we rapidly send a lot of wheel events it can increase how many lines each event moves. This will make it more effortless to traverse larger distances with a traditional mouse wheel.

A drawback might be that on a platform such as macOS the end result is the combination of two scrolling acceleration behaviors. I was going to use differing config between my different platforms though, it should address that issue.

@unphased unphased changed the title Feature request for comment, related to mouse wheel -> arrow emulation Feature request for comments, related to mouse wheel -> arrow emulation Jan 4, 2018
@unphased unphased changed the title Feature request for comments, related to mouse wheel -> arrow emulation Feature request for comments: Acceleration in mouse wheel -> arrow emulation Jan 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant