Emacs keymap for Zed #6572
Replies: 18 comments 19 replies
-
Mine looks like: https://gist.github.com/Yevgnen/9ac6784bbbbfdc604b16b87405b42bbe As a workaround, I add shift to every movement bindings to mark things. |
Beta Was this translation helpful? Give feedback.
-
Having Emacs bindings would be awesome for those of us who are heavily Emacs addicted! |
Beta Was this translation helpful? Give feedback.
-
@Yevgnen do you have an updated one? Seems like some if is not working anymore |
Beta Was this translation helpful? Give feedback.
-
@opsnull Do you think you could throw this into a Github repository so people could do pull requests against it, since the Zed people don't seem to be picking it up? |
Beta Was this translation helpful? Give feedback.
-
I think this is a more comprehensive keymap than mine, but i've been working on a branch that will allow emacs as a default option, and have a basic set of emacs bindings. @nathansobo would that be of interest? I don't know how to get permission to push a new branch to put a pull request against. Then we can all work together in the future to improve the keymap but it will at least be in there. |
Beta Was this translation helpful? Give feedback.
-
I think it doesn't matter much who sets up the repository. |
Beta Was this translation helpful? Give feedback.
-
I use |
Beta Was this translation helpful? Give feedback.
-
I have switch my entire dev environment from emacs to zed. And I have updated my keymap as following with the help of zed assistant AI: my-zed-emacs-keymap.json |
Beta Was this translation helpful? Give feedback.
-
I spent many hours trying to set up my own Emacs keybindings that are closer to real Emacs keybindings. However, I ended up temporarily switching to Vim keybinding mode until Zed provides a better Emacs keybinding experience. 😿 |
Beta Was this translation helpful? Give feedback.
-
I now see Emacs keymap Beta from most recent Zed release. |
Beta Was this translation helpful? Give feedback.
-
How do u jump and move between windows/panes in zed? |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
Should ctrl-o be implemented like the default emacs bindings define it. Opening lines below the cursor without moving the cursor. Before its implemented, any tips and tricks on how to implement it with the existing bindings? EDIT |
Beta Was this translation helpful? Give feedback.
-
Would leader mode ever a possibility in Zed? |
Beta Was this translation helpful? Give feedback.
-
The addition of the default Emacs keybinding is what made me consider switching to Zed, but currently the keymap is VERY bad and has little to do with Emacs bindings (at least I thought so as a long time user of emacs). I just wanted to post my current keybinds if helpful to anyone:
|
Beta Was this translation helpful? Give feedback.
-
In Emacs, C-n moves to the next line. |
Beta Was this translation helpful? Give feedback.
-
Several commands use Prev (e.g. SelectPrevMatch), but in the current version of Zed, this causes errors. You should replace all instances of Prev with Previous, like so:
This applies to multiple places throughout the keymap. Thanks for sharing the config, it’s been very helpful otherwise! |
Beta Was this translation helpful? Give feedback.
-
Has anyone found a way to cancel the mark after a Cut or Copy operation? I have the following:
After a Cut or Copy I would like to disable the mark, which I can do with a follow up Ctrl-g (editor::Cancel). For example, if I could bind these to two actions it would model what I'm trying to do:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
macOS has support for common Emacs movement keybindings out of the box. I started configuring Zed with other common keybindings for my muscle memory.
This is just to get the ball rolling and by no means comprehensive. If you have your own additions please share! I would really like tips on how to get marking (ctrl+space) and pasting (yanking) working like it does in Emacs.
https://gist.github.com/osener/0187f621cbeff0194ef02e2d7ed52ac1
Beta Was this translation helpful? Give feedback.
All reactions