Last active
September 4, 2025 14:28
-
-
Save dakom/bfdf4da5ae3a530b5444951e6d949e13 to your computer and use it in GitHub Desktop.
Zed keymap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Zed keymap | |
// | |
// For information on binding keys, see the Zed | |
// documentation: https://zed.dev/docs/key-bindings | |
// | |
// To see the default key bindings run `zed: open default keymap` | |
// from the command palette. | |
[ | |
{ | |
"bindings": { | |
"cmd-w": null, | |
"cmd-o": null, | |
"ctrl-o": "workspace::Open", | |
"cmd-q": [ | |
"pane::CloseActiveItem", | |
{ | |
"close_pinned": false | |
} | |
], | |
"ctrl-shift-q": "pane::CloseOtherItems", // remapped in karabiner | |
"cmd-w q": "pane::CloseAllItems", | |
"ctrl-w": "workspace::CloseWindow" | |
} | |
}, | |
{ | |
"context": "Editor || Workspace", | |
"bindings": { | |
"cmd-h": "workspace::ActivatePaneLeft", | |
"cmd-l": "workspace::ActivatePaneRight", | |
"cmd-k": "workspace::ActivatePaneUp", | |
"cmd-j": "workspace::ActivatePaneDown", | |
"cmd-s": "pane::SplitRight", | |
"cmd-shift-s": "pane::SplitDown" | |
} | |
}, | |
{ | |
"context": "Editor && vim_mode == normal", | |
"bindings": { | |
"space j": [ | |
"editor::GoToDiagnostic", | |
{ | |
"severity": { | |
"min": "warning", | |
"max": "error" | |
} | |
} | |
], | |
"space k": [ | |
"editor::GoToPreviousDiagnostic", | |
{ | |
"severity": { | |
"min": "warning", | |
"max": "error" | |
} | |
} | |
] | |
} | |
}, | |
{ | |
"context": "Workspace", | |
"bindings": { | |
"cmd-w": null, | |
"cmd-shift-w": "workspace::CloseActiveDock" | |
} | |
}, | |
{ | |
"context": "PromptLibrary", | |
"bindings": { | |
"cmd-w": null, | |
"ctrl-w": "workspace::CloseWindow" | |
} | |
}, | |
{ | |
"context": "(VimControl && !menu)", | |
"bindings": { | |
"cmd-o": "pane::GoBack", | |
"space h": "editor::Hover" | |
} | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment