Created
December 15, 2025 16:13
-
-
Save sanbox-irl/acd3ffb1562ad592d893693bb845e09b to your computer and use it in GitHub Desktop.
zed keymap settings
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
| [ | |
| { | |
| "context": "Editor", | |
| "bindings": { | |
| // movement | |
| "alt-left": "editor::MoveToPreviousWordStart", | |
| "alt-right": "editor::MoveToNextWordEnd", | |
| "secondary-left": [ | |
| "editor::MoveToBeginningOfLine", | |
| { "stop_at_soft_wraps": false, "stop_at_indent": true } | |
| ], | |
| "secondary-right": [ | |
| "editor::MoveToEndOfLine", | |
| { "stop_at_soft_wraps": false } | |
| ], | |
| "secondary-up": "editor::MoveToBeginning", | |
| "secondary-down": "editor::MoveToEnd", | |
| // selection+movement (mirrors the above) | |
| "alt-shift-left": "editor::SelectToPreviousWordStart", | |
| "alt-shift-right": "editor::SelectToNextWordEnd", | |
| "secondary-shift-left": [ | |
| "editor::SelectToBeginningOfLine", | |
| { "stop_at_soft_wraps": false, "stop_at_indent": true } | |
| ], | |
| "secondary-shift-right": [ | |
| "editor::SelectToEndOfLine", | |
| { "stop_at_soft_wraps": false } | |
| ], | |
| "secondary-shift-up": "editor::SelectToBeginning", | |
| "secondary-shift-down": "editor::SelectToEnd", | |
| "alt-shift-up": "editor::DuplicateLineUp", | |
| "alt-shift-down": "editor::DuplicateLineDown", | |
| // handle moving positions: | |
| "secondary-alt-left": "pane::ActivatePreviousItem", | |
| "secondary-alt-right": "pane::ActivateNextItem", | |
| // history | |
| "ctrl-_": "pane::GoBack", | |
| "ctrl-=": "pane::GoForward", | |
| "ctrl-+": null, | |
| "ctrl-0": null, | |
| // etc: | |
| "secondary-delete": "editor::DeleteLine", | |
| "secondary-alt-up": "editor::AddSelectionAbove", | |
| "secondary-alt-down": "editor::AddSelectionBelow", | |
| "secondary-`": "terminal_panel::ToggleFocus" | |
| } | |
| }, | |
| { | |
| "context": "Terminal", | |
| "bindings": { | |
| "secondary-w": ["pane::CloseActiveItem", { "close_pinned": false }], | |
| // this is a hack! | |
| "secondary-`": "workspace::ToggleBottomDock" | |
| } | |
| }, | |
| { | |
| "context": "Editor", | |
| "bindings": { | |
| "shift-f12": "editor::GoToImplementation" | |
| } | |
| }, | |
| { | |
| "context": "Editor", | |
| "bindings": { | |
| "ctrl-f12": "editor::GoToTypeDefinition" | |
| } | |
| } | |
| ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment