-
Notifications
You must be signed in to change notification settings - Fork 4.1k
vim: Don't push scrolls to nav history #30345
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
base: main
Are you sure you want to change the base?
Conversation
@ConradIrwin please do let me know what are the changes can be done and whether the given approach is the right one thank you |
I was looking into jumplist issues in Zed this week with @danielcressman so I thought I'd chime in here. There are a bunch of bugs related to the jumplist in vim mode. The overall problem is that there is a mismatch between how vim manages its jumplist vs how Zed in vim mode manages its jumplist. I think all of these bugs could be resolved at the same time by aligning Zed's vim mode behaviour to match vim. In Zed, it seems that any navigation action can count as a "jump":
However, Zed requires that the navigation change the cursor position by at least MIN_NAVIGATION_HISTORY_ROW_DELTA lines, which is hardcoded to 10 in the codebase. This prevents e.g. single line movements from adding to the jumplist. In vim, whether a navigation is a "jump" is determined entirely based on the type of movement. This means that even a single line move can count as a jump if it is the right type of motion, while a 100-line move may not count as a jump if it is not the right type of motion. In other words, there are 2 types of problems right now with Zed's jumplist: situations where it adds to the jumplist but shouldn't, and situations where it doesn't add to the jumplist but it should (e.g. #30183). In my view, Zed should match vim's jumplist behaviour by default when Zed is in vim mode. This would mean eliminating the use of |
added don't push clicks and g and k to history
I have pushed the changes for these any suggestions will be really helpful
|
Closes #17592
Release Notes:
Untitled.video.-.Made.with.Clipchamp.mp4