[ // NetBeans-style keymap for Zed on Linux. // Source baseline: // - vscode-nb-keybinding/package.json // - Zed default Linux keymap // // Best-effort differences: // - ctrl-shift-1 maps to the tab switcher because Zed has no direct "Open Editors" sidebar focus action. // - Folding on numpad +/- is intentionally omitted here because Zed's public keymap assets do not show numpad key token naming. // - ctrl-u u / ctrl-u l are omitted because Zed does not expose built-in uppercase/lowercase transform actions. // - ctrl-shift-0 is omitted because Zed has no direct "focus active editor group" action. // - alt-enter is mapped to code actions, which overrides Zed's default excerpts action in editor contexts. { "bindings": { "ctrl-1": "project_panel::ToggleFocus", "ctrl-shift-1": "tab_switcher::Toggle", "ctrl-7": "outline_panel::ToggleFocus", "ctrl-o": "project_symbols::Toggle", "ctrl-p": "file_finder::Toggle", "alt-shift-o": "file_finder::Toggle", "alt-left": "pane::GoBack", "alt-right": "pane::GoForward" } }, { "context": "Pane", "bindings": { "ctrl-shift-f": "pane::DeploySearch", "ctrl-shift-h": ["pane::DeploySearch", { "replace_enabled": true }], "ctrl-shift-t": "pane::ReopenClosedItem", "ctrl-tab": "tab_switcher::Toggle", "ctrl-shift-w": ["pane::CloseAllItems", { "close_pinned": false }], "f3": "search::SelectNextMatch", "shift-f3": "search::SelectPreviousMatch" } }, { "context": "BufferSearchBar", "bindings": { "ctrl-g": "search::SelectNextMatch", "ctrl-shift-g": "search::SelectPreviousMatch" } }, { "context": "ProjectSearchBar", "bindings": { "ctrl-g": "search::SelectNextMatch", "ctrl-shift-g": "search::SelectPreviousMatch" } }, { "context": "ProjectSearchView", "bindings": { "ctrl-g": "search::SelectNextMatch", "ctrl-shift-g": "search::SelectPreviousMatch" } }, { "context": "Editor", "bindings": { "ctrl-b": "editor::GoToDefinition", "alt-f7": "editor::FindAllReferences", "alt-shift-f": "editor::Format", "alt-enter": "editor::ToggleCodeActions", "ctrl-shift-c": ["editor::ToggleComments", { "advance_downwards": false }], "ctrl-e": "editor::DeleteLine", "ctrl-space": "editor::ShowCompletions", "ctrl-shift-space": "editor::Hover", "ctrl-shift-down": "editor::DuplicateLineDown", "ctrl-shift-up": "editor::DuplicateLineUp", "alt-shift-down": "editor::MoveLineDown", "alt-shift-up": "editor::MoveLineUp", "alt-up": ["editor::AddSelectionAbove", { "skip_soft_wrap": true }], "alt-down": ["editor::AddSelectionBelow", { "skip_soft_wrap": true }], "ctrl-shift-i": "editor::OrganizeImports", "ctrl-r": "editor::Rename" } }, { "context": "Editor && mode == full", "bindings": { "ctrl-shift-g": "go_to_line::Toggle" } } ]