-
Notifications
You must be signed in to change notification settings - Fork 7
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
Good scrolling when navigating by moving the cursor #23
Comments
Thanks for this feature request! I tried your proof of concept and I like the idea. One of the reasons I haven't implemented this yet is that When trying your proof of concept, I noticed a flicker where you see the scroll at the destination in between the time when the cursor moves and the time of the next |
Don't have anything useful to contribute atm, but just chiming in that this would be a fantastic feature! I hadn't checked out |
I pushed what I have so far to the cursor-scrolling branch. What's confusing is something's setting |
I think the point movement inside |
Yeah, seems to be reverted at the very end of |
Is your feature request related to a problem? Please describe.
I usually don't use the scroll wheel or page down/up keys to navigate emacs, I skip around by paragraph. This causes the window to snap to the new position, but I would prefer if it scrolled smoothly instead of snapping, like this package does when scrolling with the scroll wheel or page down/up keys.
Describe the solution you'd like
When the window snaps to the new position, it could be snapped back to where it was (or as far back as possible while keeping the cursor inside the window), and then running the regular good-scroll movement logic to move smoothly to where the window was originally snapped.
Describe alternatives you've considered
Entirely reimplementing the window snapping that happens when moving around with the cursor, so that it uses the good-scroll scrolling functionality straight away. However, this seems like it would require a lot of replacing functionality that isn't needed by the solution above.
Additional context
This feature feels like it would be better off being its own package, but on the other hand, good-scroll has scrolling logic that I think would be beneficial to share with this feature. In any case, I've implement a sort-of-working proof of concept in my fork, but it still requires some tweaking, and might be overall relatively misguided, as it's the first elisp thing I've written. The actual functionality also looks a little weird when scrolling a lot (out-pacing the smooth scrolling), but I think that's a necessary side-effect of the solution I came up with.
And finally, thank you for writing this package, it's made my daily emacs use a much nicer experience!
The text was updated successfully, but these errors were encountered: