Skip to content

Instantly share code, notes, and snippets.

@piotreknow02
Last active May 21, 2025 22:01
Show Gist options
  • Save piotreknow02/5c74a261d58a03029684c816eadd94f5 to your computer and use it in GitHub Desktop.
Save piotreknow02/5c74a261d58a03029684c816eadd94f5 to your computer and use it in GitHub Desktop.
Zed keymap
[
{
"context": "Dock || Terminal || Editor || ProjectPanel",
"bindings": {
"ctrl-h": "workspace::ActivatePaneLeft",
"ctrl-l": "workspace::ActivatePaneRight",
"ctrl-k": "workspace::ActivatePaneUp",
"ctrl-j": "workspace::ActivatePaneDown"
}
},
{
"context": "Editor && VimControl && !VimWaiting && !menu",
"bindings": {
"space b": "git::Blame",
"shift-k": "editor::Hover",
"space d": "diagnostics::Deploy",
"space g p": "editor::ToggleSelectedDiffHunks",
"space g r": "git::Restore",
"space g s": "git::ToggleStaged",
"g d": "editor::GoToDefinition",
"g D": "editor::GoToDefinitionSplit",
"g i": "editor::GoToImplementation",
"g I": "editor::GoToImplementationSplit",
"g t": "editor::GoToTypeDefinition",
"g T": "editor::GoToTypeDefinitionSplit",
"g r": "editor::FindAllReferences",
"] d": "editor::GoToDiagnostic",
"[ d": "editor::GoToPreviousDiagnostic",
"n": "search::SelectNextMatch",
"shift-n": "search::SelectPreviousMatch",
"space t": "workspace::NewCenterTerminal",
"space c": "pane::CloseActiveItem",
"|": "pane::SplitRight",
"\\": "pane::SplitDown"
}
},
{
"context": "vim_mode == insert",
"bindings": {
"ctrl-k": "editor::ContextMenuPrevious",
"ctrl-j": "editor::ContextMenuNext"
}
},
{
"context": "Editor && vim_mode == visual && !VimWaiting && !VimObject",
"bindings": {
"shift-j": "editor::MoveLineDown",
"shift-k": "editor::MoveLineUp"
}
},
{
"context": "TabSwitcher",
"bindings": {
"ctrl-k": "menu::SelectPrevious",
"ctrl-j": "menu::SelectNext"
}
},
{
"context": "FileFinder",
"bindings": {
"ctrl-k": "menu::SelectPrevious",
"ctrl-j": "menu::SelectNext"
}
},
{
"context": "CommandPalette",
"bindings": {
"ctrl-k": "menu::SelectPrevious",
"ctrl-j": "menu::SelectNext"
}
},
{
"context": "EmptyPane || SharedScreen || vim_operator == none && !VimWaiting && vim_mode != insert",
"bindings": {
"space f f": [
"task::Spawn",
{ "task_name": "file_finder", "reveal_target": "center" }
],
"space f w": [
"task::Spawn",
{ "task_name": "live_grep", "reveal_target": "center" }
],
"space f g": [
"task::Spawn",
{ "task_name": "find_git_diff", "reveal_target": "center" }
],
"space f d": "file_finder::Toggle",
"space f s": "workspace::NewSearch",
"space o": "tab_switcher::Toggle"
}
},
{
"context": "(Dock && not_editing) || (Editor && vim_mode == normal)",
"bindings": {
"space e": "workspace::ToggleLeftDock",
"space r": "workspace::ToggleRightDock"
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment