Created
July 2, 2024 21:19
-
-
Save adibhanna/a05822aab6102ec8bd9d9cb6c119a7e2 to your computer and use it in GitHub Desktop.
Zed Keymaps
This file contains 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
[ | |
{ | |
"context": "Editor && VimControl && !VimWaiting && !menu", | |
"bindings": { | |
"ctrl-w z": "workspace::ToggleZoom", | |
"ctrl-w t": "terminal_panel::ToggleFocus", | |
"g ]": "editor::GoToDiagnostic", | |
"g [": "editor::GoToPrevDiagnostic", | |
"g r": "editor::FindAllReferences", | |
"shift-k": "editor::Hover", | |
"space l a": "editor::ToggleCodeActions", | |
"space l r": "editor::Rename", | |
"space l f": "editor::Format", | |
"space l l": "diagnostics::Deploy", | |
"space s t": "pane::DeploySearch", | |
"g c c": "editor::ToggleComments", | |
"space f": "file_finder::Toggle", | |
"space o": "tab_switcher::Toggle", | |
"space e": "workspace::ToggleLeftDock", | |
"space p": "outline::Toggle", | |
"space v": "editor::GoToDefinitionSplit" | |
} | |
}, | |
{ | |
"context": "EmptyPane || SharedScreen || vim_operator == none && !VimWaiting && vim_mode != insert", | |
"bindings": { | |
"space r t": "task::Spawn", | |
"space r e": ["task::Rerun", { "reevaluate_context": true }], | |
"space f": "file_finder::Toggle", | |
"space e": "workspace::ToggleLeftDock" | |
} | |
}, | |
{ | |
"context": "Editor && vim_mode == insert && !menu", | |
"bindings": { | |
"j j": "vim::NormalBefore" | |
} | |
}, | |
{ | |
"context": "Editor && vim_mode == visual && !VimWaiting && !VimObject", | |
"bindings": { | |
"shift-j": "editor::MoveLineDown", | |
"shift-k": "editor::MoveLineUp" | |
} | |
}, | |
{ | |
"context": "Workspace", | |
"bindings": { | |
"ctrl-w n": "workspace::NewTerminal", | |
"ctrl-w f": "terminal_panel::ToggleFocus" | |
} | |
}, | |
{ | |
"context": "Terminal", | |
"bindings": { | |
"ctrl-w z": "workspace::ToggleZoom", | |
"ctrl-w t": "terminal_panel::ToggleFocus" | |
} | |
}, | |
{ | |
"context": "Editor", | |
"bindings": { | |
"cmd-[": "editor::Outdent", | |
"cmd-]": "editor::Indent", | |
"cmd-alt-up": "editor::AddSelectionAbove", | |
"cmd-ctrl-p": "editor::AddSelectionAbove", | |
"cmd-alt-down": "editor::AddSelectionBelow", | |
"cmd-ctrl-n": "editor::AddSelectionBelow", | |
"cmd-d": [ | |
"editor::SelectNext", | |
{ | |
"replace_newest": false | |
} | |
], | |
"ctrl-cmd-d": [ | |
"editor::SelectPrevious", | |
{ | |
"replace_newest": false | |
} | |
], | |
"cmd-k cmd-d": [ | |
"editor::SelectNext", | |
{ | |
"replace_newest": true | |
} | |
], | |
"cmd-k ctrl-cmd-d": [ | |
"editor::SelectPrevious", | |
{ | |
"replace_newest": true | |
} | |
], | |
"cmd-/": [ | |
"editor::ToggleComments", | |
{ | |
"advance_downwards": false | |
} | |
], | |
"alt-up": "editor::SelectLargerSyntaxNode", | |
"alt-down": "editor::SelectSmallerSyntaxNode", | |
"cmd-u": "editor::UndoSelection", | |
"cmd-shift-u": "editor::RedoSelection", | |
"f8": "editor::GoToDiagnostic", | |
"shift-f8": "editor::GoToPrevDiagnostic", | |
"f2": "editor::Rename", | |
"f12": "editor::GoToDefinition", | |
"alt-f12": "editor::GoToDefinitionSplit", | |
"cmd-f12": "editor::GoToTypeDefinition", | |
"alt-cmd-f12": "editor::GoToTypeDefinitionSplit", | |
"alt-shift-f12": "editor::FindAllReferences", | |
"ctrl-m": "editor::MoveToEnclosingBracket", | |
"alt-cmd-[": "editor::Fold", | |
"alt-cmd-]": "editor::UnfoldLines", | |
"ctrl-space": "editor::ShowCompletions", | |
"cmd-.": "editor::ToggleCodeActions", | |
"alt-cmd-r": "editor::RevealInFinder" | |
} | |
}, | |
{ | |
"context": "TabSwitcher", | |
"bindings": { | |
"shift-k": "menu::SelectPrev", | |
"shift-j": "menu::SelectNext", | |
"ctrl-d": "tab_switcher::CloseSelectedItem" | |
} | |
}, | |
{ | |
"context": "Pane", | |
"bindings": { | |
"ctrl-d": "pane::CloseActiveItem" | |
} | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment