User keybindings not respected #35647
Replies: 3 comments 3 replies
-
|
I don't know if this is a regression or not because I just started using Zed |
Beta Was this translation helpful? Give feedback.
-
|
I can second this. I am trying to change the keybindings through the menus, and if I delete or change a keybinding the old one is still there. When deleting it creates a null action with the deleted keybinding and the old one is still there. |
Beta Was this translation helpful? Give feedback.
-
|
Hi folks, The keymap editor is a new feature that may not (yet) current reflect the complexity of remapping keys in Zed. Here is some documentation: https://zed.dev/docs/key-bindings Three things you can spaw from the command palette (cmd-shift-p) which might help:
@oaahmad The context for your keybinds is not specific enough, so there are keybinds with more specific context which are taking precedence. For example: {
"context": "Editor && mode == full",
"bindings": {
"cmd-right": "editor::GoToNextChange"
}
},
{
"context": "Editor && mode == full",
"bindings": {
"cmd-left": "editor::GoToPreviousChange"
}
},
{"bindings": {"cmd-enter": "command_palette::Toggle"}},
{"context": "Editor && mode == full", "bindings": { "cmd-enter": "command_palette::Toggle" }},
{"context": "BufferSearchBar && in_replace > Editor", "bindings": { "cmd-enter": "command_palette::Toggle" }},
{"context": "ProjectSearchBar && in_replace > Editor", "bindings": { "cmd-enter": "command_palette::Toggle" }},
{"context": "ProjectSearchBar && !in_replace", "bindings": { "cmd-enter": "command_palette::Toggle" }},
{"context": "GitDiff > Editor", "bindings": { "cmd-enter": "command_palette::Toggle" }},
{"context": "CommitEditor > Editor", "bindings": { "cmd-enter": "command_palette::Toggle" }},
{"context": "GitPanel", "bindings": { "cmd-enter": "command_palette::Toggle" }},
{"context": "GitCommit > Editor", "bindings": { "cmd-enter": "command_palette::Toggle" }},
{"context": "ConfigureContextServerModal > Editor","bindings": { "cmd-enter": "command_palette::Toggle" }}, |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I can't use my configured keybindings.
Description
I have defined some keybindings. Here is my
~/.config/zed/keymap.jsonfile:[ { "context": "Workspace", "bindings": { "cmd-enter": "command_palette::Toggle" } }, { "bindings": { "cmd-right": "editor::GoToNextChange" } }, { "bindings": { "cmd-left": "editor::GoToPreviousChange" } } ]None of those keybindings function. For example, typing
cmd-enteradds a line to the open document instead of opening the command palette.I am using a stable release of Zed:
I am on a MacBook Pro with Apple Silicon.
Steps to reproduce:
~/.config/zed/keymap.jsonwith the above JSONcmd-enterExpected Behavior:
The command palette opens.
Actual Behavior:
A line is entered into the document.
Zed Version and System Specs
Zed: v0.197.5 (Zed)
OS: macOS 15.6.0
Memory: 16 GiB
Architecture: aarch64
Beta Was this translation helpful? Give feedback.
All reactions