-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Incorrect control-A and control-E behavior with soft_wrap #4554
Comments
I think that's desired behavior. If you want to go to the 'real' beginning/end of line, just ctrl a / ctrl e again. |
Oh, I didn't know about double pressing to go to the real beginning of the line. That's great @liebkne! It seems a little surprising though, do other apps have that behavior? Would it make sense to make |
I don't like Zed's handling of So I took a survey: Editors that ignore soft wrap when jumping to the beginning/end with
Same as Zed (double tap when navigating thru a word wrap):
|
This is now supported via custom keymap. Here's what I use: [
{
"context": "Editor",
"bindings": {
"home": ["editor::MoveToBeginningOfLine", { "stop_at_soft_wraps": false }],
"end": ["editor::MoveToEndOfLine", { "stop_at_soft_wraps": false }],
"cmd-left": ["editor::MoveToBeginningOfLine", { "stop_at_soft_wraps": false }],
"ctrl-a": ["editor::MoveToBeginningOfLine", { "stop_at_soft_wraps": false }],
"cmd-right": ["editor::MoveToEndOfLine", { "stop_at_soft_wraps": false }],
"ctrl-e": ["editor::MoveToEndOfLine", { "stop_at_soft_wraps": false }]
}
}
] |
Check for existing issues
Describe the bug / provide steps to reproduce it
When editing a file that with soft wrapping:
These should go to the beginning and end of the line, not the soft wrapped character limit.
control-k behaves correctly, and deletes to the end of the line, rather than the soft-wrap line.
Environment
Zed: v0.97.5 (stable)
OS: macOS 13.4.1
Memory: 32 GiB
Architecture: aarch64
The text was updated successfully, but these errors were encountered: