-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Add a mark / select mode #8580
Comments
Add emacs keybindings for mark emulation #22904 implements %95 of Emacs set-mark + movement commands without an explicit "mark-mode". I've been using these for a few days and it is working great in practice. The "selection" context that enables this is already merged (#21927), so you can test this and provide feedback by copying these keybindings to your |
Together with
this is really nice for Emacs. I didn't find anything like |
Have a look at #4856 for many keybinding options. I just tested and my {
"bindings": {
"ctrl-g": "menu::Cancel",
"alt-x": "app_menu::OpenApplicationMenu",
"ctrl-?": null
}
}, |
Thanks. |
There is an initial implementation of this behavior for the emacs keybinding here: With this change (available in Preview 0.170 on Wednesday 2025-01-15) if you press Some known drawbacks of this approach:
|
Aah, I see. The solution with the chords is pretty elegant. I'll try it for a while instead of simple |
@failable Why are you putting your keybindings under |
I just copied them from the |
Updates #21927 Closes #8580 Co-Authored-By: Peter <[email protected]>
Updates #21927 Closes #8580 Co-Authored-By: Peter <[email protected]>
Check for existing issues
Describe the feature
Currently node selection is handy in Zed. But other (random) selection generally require pressing the
shift
key. Although it's possible to assign shortcuts to selection without using theshift
key, in order to maintain consistency between selection and movement, they usually differ by just oneshift
key.This is pain when editing text file or markdown file where one is not always selecting some "syntax node".
Suggest to add a standalone mark mode, like the visual selection in
vim
ortransient-mark-mode
in emacs.Note that this mode is not bound with
vim-mode
. Thetransient-mark-mode
in emacs can also activated independently.This feature can greatly reduce the frequency of continuously holding down the
shift
key to protect the little finger.When the mode is activated, the
shift
in the key bindings can be ignored. Normal movements likectrl-n
acts likectrl-shift-n
.If applicable, add mockups / screenshots to help present your vision of the feature
No response
The text was updated successfully, but these errors were encountered: