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

Smooth scrolling while scrolling using j/k(vim keys) #1282

Open
aehabdelouadoud opened this issue Jan 5, 2025 · 3 comments
Open

Smooth scrolling while scrolling using j/k(vim keys) #1282

aehabdelouadoud opened this issue Jan 5, 2025 · 3 comments

Comments

@aehabdelouadoud
Copy link

First of all, thanks for the awesome software.

I was wondering if i can get smooth scrolling while using vim keys?

@ahrm
Copy link
Owner

ahrm commented Jan 5, 2025

In the development branch we have added move_down_smooth and move_up_smooth commands.

@duguyipiao
Copy link

If I put move_down_smooth;move_down_smooth d in the config file. When I press d, the scroll doesn't stop.
So deos move_up_smooth;move_up_smooth.

@ahrm
Copy link
Owner

ahrm commented Jan 6, 2025

Yeah, because of the way that move_down_smooth is implemented, it can not work in macros (it handle the key down and key up events and sets a constant velocity in those events, it is ambiguous which command's key down and key up events in a macro command, and even if we did run the key down and key up events of all commands it would not do what you want which is presumably a faster smooth move), if you want to adjust the speed you need to adjust the smooth_move_max_velocity config or use the recently added screen_down_smooth and screen_up_smooth commands.

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

3 participants