editor::LineUp & editor::LineDown should honer vertical_scroll_margin like vim::LineUp & vim::LineDown do #49821
TwoClocks
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Body
What are you proposing?
The editor versions of LineUp/LineDown should behave the same as the vim version in regards to vertical_scroll_margin, or at least add an option to enable.
This would bring zed in parity with vscode and vim.
Why does this matter?
If you're used it, it's really annoying to not have it. You scroll up, and the cursor goes off the screen. They any movement of the cursor causes an abrupt shift in what you're looking at. You've lost your place.
Are there any examples or context?
in vscode you can do this:
Possible approach
You could allow vim::LineUp / vim::LineDown in non-vim mode, as they already have the expected behaviour.
Beta Was this translation helpful? Give feedback.
All reactions