Skip to content

Instantly share code, notes, and snippets.

@bit4bit
Last active September 1, 2025 18:29
Show Gist options
  • Select an option

  • Save bit4bit/14d4b85a4a77f93a3b2e06f29b502d75 to your computer and use it in GitHub Desktop.

Select an option

Save bit4bit/14d4b85a4a77f93a3b2e06f29b502d75 to your computer and use it in GitHub Desktop.
zed editor classical emacs keybinding
[
{
"context": "Workspace",
"bindings": {
"ctrl-j": "editor::Newline",
"ctrl-p": null,
"ctrl-n": null
}
},
{
"context": "Editor && selection_mode",
"bindings": {
"ctrl-w": ["workspace::SendKeystrokes", "cut right ctrl-g left"],
"alt-w": ["workspace::SendKeystrokes", "copy ctrl-g"],
"ctrl-down": "editor::SelectToEndOfParagraph",
"ctrl-up": "editor::SelectToStartOfParagraph",
"ctrl-home": "editor::SelectToBeginning",
"ctrl-end": "editor::SelectToEnd"
}
},
{
"context": "Editor && mode == full",
"bindings": {
"ctrl-g": null
}
},
{
"context": "Editor",
"bindings": {
"ctrl-y": "editor::Paste",
"ctrl-x 1": "pane::JoinAll",
"shift-right": "workspace::ActivatePaneRight",
"shift-left": "workspace::ActivatePaneLeft",
"shift-up": "workspace::ActivatePaneUp",
"shift-down": "workspace::ActivatePaneDown",
"ctrl-g": "editor::Cancel"
}
},
{
"context": "GitPanel || ProjectPanel",
"bindings": {
"ctrl-x k": "workspace::CloseActiveDock",
"ctrl-w": "workspace::CloseActiveDock",
"shift-right": "workspace::ActivatePaneRight"
}
},
{
"context": "GitPanel",
"bindings": {
"f7": "git::Push"
}
},
{
"context": "AgentPanel",
"bindings": {
"ctrl-x k": "workspace::CloseActiveDock",
"ctrl-w": "workspace::CloseActiveDock",
"shift-left": "workspace::ActivatePaneLeft"
}
},
{
"context": "DebugPanel",
"bindings": {
"ctrl-x k": "workspace::CloseActiveDock",
"ctrl-w": "workspace::CloseActiveDock"
}
},
{
"context": "Terminal",
"bindings": {
"shift-up": "workspace::ActivatePaneUp",
"ctrl-x k": "pane::CloseActiveItem"
}
},
{
"bindings": {
"f12": "workspace::ToggleLeftDock",
"f9": "git_panel::ToggleFocus"
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment