|
[ |
|
// Standard Windows bindings |
|
{ |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"home": "menu::SelectFirst", |
|
"shift-pageup": "menu::SelectFirst", |
|
"pageup": "menu::SelectFirst", |
|
"end": "menu::SelectLast", |
|
"shift-pagedown": "menu::SelectLast", |
|
"pagedown": "menu::SelectLast", |
|
// "ctrl-n": "menu::SelectNext", |
|
"tab": "menu::SelectNext", |
|
"down": "menu::SelectNext", |
|
"ctrl-p": "menu::SelectPrevious", |
|
"shift-tab": "menu::SelectPrevious", |
|
"up": "menu::SelectPrevious", |
|
"enter": "menu::Confirm", |
|
"ctrl-enter": "menu::SecondaryConfirm", |
|
"ctrl-c": "menu::Cancel", |
|
"escape": "menu::Cancel", |
|
"shift-alt-enter": "menu::Restart", |
|
"alt-enter": ["picker::ConfirmInput", { "secondary": false }], |
|
"ctrl-alt-enter": ["picker::ConfirmInput", { "secondary": true }], |
|
"ctrl-shift-w": "workspace::CloseWindow", |
|
"shift-escape": "workspace::ToggleZoom", |
|
"ctrl-o": "workspace::OpenFiles", |
|
"ctrl-k ctrl-o": "workspace::Open", |
|
"ctrl-=": ["zed::IncreaseBufferFontSize", { "persist": false }], |
|
"ctrl-shift-=": ["zed::IncreaseBufferFontSize", { "persist": false }], |
|
"ctrl--": ["zed::DecreaseBufferFontSize", { "persist": false }], |
|
"ctrl-0": ["zed::ResetBufferFontSize", { "persist": false }], |
|
"ctrl-alt-,": "zed::OpenSettingsFile", |
|
"ctrl-q": "zed::Quit", |
|
"f4": "debugger::Start", |
|
"shift-f5": "debugger::Stop", |
|
"ctrl-shift-f5": "debugger::RerunSession", |
|
"f6": "debugger::Pause", |
|
"f10": "debugger::StepOver", |
|
"shift-f11": "debugger::StepOut", |
|
"f11": "zed::ToggleFullScreen", |
|
"ctrl-shift-i": "edit_prediction::ToggleMenu", |
|
"shift-alt-l": "lsp_tool::ToggleMenu", |
|
"ctrl-shift-alt-c": "editor::DisplayCursorNames", |
|
"ctrl-shift-alt-s": "workspace::ToggleWorktreeSecurity", |
|
}, |
|
}, |
|
{ |
|
"context": "Picker || menu", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"up": "menu::SelectPrevious", |
|
"down": "menu::SelectNext", |
|
}, |
|
}, |
|
{ |
|
"context": "menu", |
|
"bindings": { |
|
"right": "menu::SelectChild", |
|
"left": "menu::SelectParent", |
|
}, |
|
}, |
|
{ |
|
"context": "Editor", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"escape": "editor::Cancel", |
|
"shift-backspace": "editor::Backspace", |
|
"backspace": "editor::Backspace", |
|
"delete": "editor::Delete", |
|
"tab": "editor::Tab", |
|
"shift-tab": "editor::Backtab", |
|
"ctrl-k ctrl-q": "editor::Rewrap", |
|
"ctrl-k q": "editor::Rewrap", |
|
"ctrl-backspace": [ |
|
"editor::DeleteToPreviousWordStart", |
|
{ "ignore_newlines": false, "ignore_brackets": false }, |
|
], |
|
"ctrl-delete": [ |
|
"editor::DeleteToNextWordEnd", |
|
{ "ignore_newlines": false, "ignore_brackets": false }, |
|
], |
|
"shift-delete": "editor::Cut", |
|
"ctrl-x": "editor::Cut", |
|
"ctrl-insert": "editor::Copy", |
|
"ctrl-c": "editor::Copy", |
|
"shift-insert": "editor::Paste", |
|
"ctrl-v": "editor::Paste", |
|
"ctrl-z": "editor::Undo", |
|
"ctrl-y": "editor::Redo", |
|
"ctrl-n": "workspace::NewFile", |
|
"ctrl-w": ["pane::CloseActiveItem", { "close_pinned": false }], |
|
"ctrl-shift-z": "editor::Redo", |
|
"up": "editor::MoveUp", |
|
"ctrl-up": "editor::LineUp", |
|
"ctrl-down": "editor::LineDown", |
|
"pageup": "editor::MovePageUp", |
|
"alt-pageup": "editor::PageUp", |
|
"shift-pageup": "editor::SelectPageUp", |
|
"home": [ |
|
"editor::MoveToBeginningOfLine", |
|
{ "stop_at_soft_wraps": true, "stop_at_indent": true }, |
|
], |
|
"down": "editor::MoveDown", |
|
"pagedown": "editor::MovePageDown", |
|
"alt-pagedown": "editor::PageDown", |
|
"shift-pagedown": "editor::SelectPageDown", |
|
"end": ["editor::MoveToEndOfLine", { "stop_at_soft_wraps": true }], |
|
"left": "editor::MoveLeft", |
|
"right": "editor::MoveRight", |
|
"ctrl-left": "editor::MoveToPreviousWordStart", |
|
"ctrl-right": "editor::MoveToNextWordEnd", |
|
"ctrl-home": "editor::MoveToBeginning", |
|
"ctrl-end": "editor::MoveToEnd", |
|
"shift-up": "editor::SelectUp", |
|
"shift-down": "editor::SelectDown", |
|
"shift-left": "editor::SelectLeft", |
|
"shift-right": "editor::SelectRight", |
|
"ctrl-shift-left": "editor::SelectToPreviousWordStart", |
|
"ctrl-shift-right": "editor::SelectToNextWordEnd", |
|
"ctrl-shift-home": "editor::SelectToBeginning", |
|
"ctrl-shift-end": "editor::SelectToEnd", |
|
"ctrl-a": "editor::SelectAll", |
|
"ctrl-l": "editor::SelectLine", |
|
"shift-alt-f": "editor::Format", |
|
"shift-alt-o": "editor::OrganizeImports", |
|
"shift-home": [ |
|
"editor::SelectToBeginningOfLine", |
|
{ "stop_at_soft_wraps": true, "stop_at_indent": true }, |
|
], |
|
"shift-end": [ |
|
"editor::SelectToEndOfLine", |
|
{ "stop_at_soft_wraps": true }, |
|
], |
|
"ctrl-alt-space": "editor::ShowCharacterPalette", |
|
"ctrl-;": "editor::ToggleLineNumbers", |
|
"ctrl-'": "editor::ToggleSelectedDiffHunks", |
|
"ctrl-\"": "editor::ExpandAllDiffHunks", |
|
"ctrl-i": "editor::ShowSignatureHelp", |
|
"alt-g b": "git::Blame", |
|
"alt-g m": "git::OpenModifiedFiles", |
|
"alt-g r": "git::ReviewDiff", |
|
"menu": "editor::OpenContextMenu", |
|
"shift-f10": "editor::OpenContextMenu", |
|
"ctrl-alt-e": "editor::ToggleEditPrediction", |
|
"f9": "editor::ToggleBreakpoint", |
|
"shift-f9": "editor::EditLogBreakpoint", |
|
}, |
|
}, |
|
{ |
|
"context": "Editor && mode == full", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"shift-enter": "editor::Newline", |
|
"enter": "editor::Newline", |
|
"ctrl-enter": "editor::NewlineBelow", |
|
"ctrl-shift-enter": "editor::NewlineAbove", |
|
"ctrl-k ctrl-z": "editor::ToggleSoftWrap", |
|
"ctrl-k z": "editor::ToggleSoftWrap", |
|
"ctrl-f": "buffer_search::Deploy", |
|
"ctrl-h": "buffer_search::DeployReplace", |
|
"ctrl-shift-.": "agent::AddSelectionToThread", |
|
"shift-alt-e": "editor::SelectEnclosingSymbol", |
|
"ctrl-shift-backspace": "editor::GoToPreviousChange", |
|
"ctrl-shift-alt-backspace": "editor::GoToNextChange", |
|
"alt-enter": "editor::OpenSelectionsInMultibuffer", |
|
}, |
|
}, |
|
{ |
|
"context": "Editor && mode == full && edit_prediction", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"alt-]": "editor::NextEditPrediction", |
|
"alt-[": "editor::PreviousEditPrediction", |
|
}, |
|
}, |
|
{ |
|
"context": "Editor && !edit_prediction", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"alt-\\": "editor::ShowEditPrediction", |
|
}, |
|
}, |
|
{ |
|
"context": "Editor && mode == auto_height", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-enter": "editor::Newline", |
|
"shift-enter": "editor::Newline", |
|
"ctrl-shift-enter": "editor::NewlineBelow", |
|
}, |
|
}, |
|
{ |
|
"context": "Markdown", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-c": "markdown::Copy", |
|
}, |
|
}, |
|
{ |
|
"context": "Editor && jupyter", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-shift-enter": "repl::Run", |
|
"ctrl-alt-enter": "repl::RunInPlace", |
|
}, |
|
}, |
|
{ |
|
"context": "Editor && !agent_diff", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-k ctrl-r": "git::Restore", |
|
"alt-y": "git::StageAndNext", |
|
"shift-alt-y": "git::UnstageAndNext", |
|
}, |
|
}, |
|
{ |
|
"context": "Editor && editor_agent_diff", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"alt-y": "agent::Keep", |
|
"ctrl-alt-y": "agent::Keep", |
|
"ctrl-alt-z": "agent::Reject", |
|
"shift-alt-y": "agent::KeepAll", |
|
"shift-alt-z": "agent::RejectAll", |
|
"ctrl-shift-r": "agent::OpenAgentDiff", |
|
}, |
|
}, |
|
{ |
|
"context": "AgentDiff", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"alt-y": "agent::Keep", |
|
"ctrl-alt-y": "agent::Keep", |
|
"ctrl-alt-z": "agent::Reject", |
|
"shift-alt-y": "agent::KeepAll", |
|
"shift-alt-z": "agent::RejectAll", |
|
}, |
|
}, |
|
{ |
|
"context": "AgentPanel", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-n": "agent::NewThread", |
|
"shift-alt-c": "agent::OpenSettings", |
|
"shift-alt-i": "agent::ToggleOptionsMenu", |
|
"ctrl-shift-alt-n": "agent::ToggleNewThreadMenu", |
|
"ctrl-shift-e": "project_panel::ToggleFocus", |
|
"ctrl-tab": "agents_sidebar::ToggleThreadSwitcher", |
|
"ctrl-shift-tab": [ |
|
"agents_sidebar::ToggleThreadSwitcher", |
|
{ "select_last": true }, |
|
], |
|
}, |
|
}, |
|
{ |
|
"context": "AgentPanel > Markdown", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-c": "markdown::CopyAsMarkdown", |
|
}, |
|
}, |
|
{ |
|
"context": "AgentFeedbackMessageEditor > Editor", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"escape": "menu::Cancel", |
|
"enter": "menu::Confirm", |
|
"alt-enter": "editor::Newline", |
|
}, |
|
}, |
|
{ |
|
"context": "AcpThread > ModeSelector", |
|
"bindings": { |
|
"ctrl-enter": "menu::Confirm", |
|
}, |
|
}, |
|
{ |
|
"context": "AcpThread", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-n": "agent::NewThread", |
|
"ctrl--": "pane::GoBack", |
|
"shift-alt-l": "agent::OpenRulesLibrary", |
|
"shift-alt-p": "agent::ManageProfiles", |
|
"ctrl-i": "agent::ToggleProfileSelector", |
|
"shift-tab": "agent::CycleModeSelector", |
|
"shift-alt-/": "agent::ToggleModelSelector", |
|
"alt-tab": "agent::CycleFavoriteModels", |
|
// `alt-l` is provided as an alternative to `alt-tab` as the latter breaks on Windows under the `AcpThread` context |
|
"alt-l": "agent::CycleFavoriteModels", |
|
"shift-alt-escape": "agent::ExpandMessageEditor", |
|
"ctrl-shift-.": "agent::AddSelectionToThread", |
|
"shift-alt-q": "agent::AllowAlways", |
|
"shift-alt-a": "agent::AllowOnce", |
|
"ctrl-alt-a": "agent::OpenPermissionDropdown", |
|
"shift-alt-x": "agent::RejectOnce", |
|
"pageup": "agent::ScrollOutputPageUp", |
|
"pagedown": "agent::ScrollOutputPageDown", |
|
"home": "agent::ScrollOutputToTop", |
|
"end": "agent::ScrollOutputToBottom", |
|
"up": "agent::ScrollOutputLineUp", |
|
"down": "agent::ScrollOutputLineDown", |
|
"shift-pageup": "agent::ScrollOutputToPreviousMessage", |
|
"shift-pagedown": "agent::ScrollOutputToNextMessage", |
|
"ctrl-alt-pageup": "agent::ScrollOutputPageUp", |
|
"ctrl-alt-pagedown": "agent::ScrollOutputPageDown", |
|
"ctrl-alt-home": "agent::ScrollOutputToTop", |
|
"ctrl-alt-end": "agent::ScrollOutputToBottom", |
|
"ctrl-alt-up": "agent::ScrollOutputLineUp", |
|
"ctrl-alt-down": "agent::ScrollOutputLineDown", |
|
"ctrl-alt-shift-pageup": "agent::ScrollOutputToPreviousMessage", |
|
"ctrl-alt-shift-pagedown": "agent::ScrollOutputToNextMessage", |
|
}, |
|
}, |
|
{ |
|
"context": "AcpThread > Editor", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-alt-pageup": "agent::ScrollOutputPageUp", |
|
"ctrl-alt-pagedown": "agent::ScrollOutputPageDown", |
|
"ctrl-alt-home": "agent::ScrollOutputToTop", |
|
"ctrl-alt-end": "agent::ScrollOutputToBottom", |
|
"ctrl-alt-up": "agent::ScrollOutputLineUp", |
|
"ctrl-alt-down": "agent::ScrollOutputLineDown", |
|
"ctrl-alt-shift-pageup": "agent::ScrollOutputToPreviousMessage", |
|
"ctrl-alt-shift-pagedown": "agent::ScrollOutputToNextMessage", |
|
"ctrl-shift-r": "agent::OpenAgentDiff", |
|
"ctrl-shift-d": "git::Diff", |
|
"shift-alt-y": "agent::KeepAll", |
|
"shift-alt-z": "agent::RejectAll", |
|
"shift-alt-u": "agent::UndoLastReject", |
|
"ctrl-enter": "agent::ChatWithFollow", |
|
"ctrl-shift-enter": "agent::SendImmediately", |
|
"ctrl-shift-alt-enter": "agent::SendNextQueuedMessage", |
|
"ctrl-shift-backspace": "agent::RemoveFirstQueuedMessage", |
|
"ctrl-alt-e": "agent::EditFirstQueuedMessage", |
|
"ctrl-alt-backspace": "agent::ClearMessageQueue", |
|
"ctrl-shift-v": "agent::PasteRaw", |
|
"ctrl-i": "agent::ToggleProfileSelector", |
|
"shift-tab": "agent::CycleModeSelector", |
|
// `alt-l` is provided as an alternative to `alt-tab` as the latter breaks on Windows under the `AcpThread > Editor` context |
|
"alt-tab": "agent::CycleFavoriteModels", |
|
"alt-l": "agent::CycleFavoriteModels", |
|
"ctrl-;": "agent::OpenAddContextMenu", |
|
"ctrl-alt-k": "agent::ToggleThinkingMode", |
|
"ctrl-alt-'": "agent::ToggleThinkingEffortMenu", |
|
"ctrl-'": "agent::CycleThinkingEffort", |
|
"ctrl-alt-.": "agent::ToggleFastMode", |
|
}, |
|
}, |
|
{ |
|
"context": "AcpThread > Editor && start_of_input", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"pageup": "agent::ScrollOutputPageUp", |
|
"ctrl-pageup": "agent::ScrollOutputPageUp", |
|
"ctrl-home": "agent::ScrollOutputToTop", |
|
}, |
|
}, |
|
{ |
|
"context": "AcpThread > Editor && end_of_input", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"pagedown": "agent::ScrollOutputPageDown", |
|
"ctrl-pagedown": "agent::ScrollOutputPageDown", |
|
"ctrl-end": "agent::ScrollOutputToBottom", |
|
}, |
|
}, |
|
{ |
|
"context": "AcpThread > Editor && mode == full", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"alt-enter": "editor::OpenExcerpts", |
|
}, |
|
}, |
|
{ |
|
"context": "AcpThread > Editor && !use_modifier_to_send", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"enter": "agent::Chat", |
|
}, |
|
}, |
|
{ |
|
"context": "AcpThread > Editor && use_modifier_to_send", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-enter": "agent::Chat", |
|
"enter": "editor::Newline", |
|
}, |
|
}, |
|
{ |
|
"context": "ThreadHistory", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"backspace": "agent::RemoveSelectedThread", |
|
}, |
|
}, |
|
{ |
|
"context": "ThreadsArchiveView", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"shift-backspace": "agent::ArchiveSelectedThread", |
|
}, |
|
}, |
|
{ |
|
"context": "BufferSearchBar", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"escape": "buffer_search::Dismiss", |
|
"tab": "buffer_search::FocusEditor", |
|
"enter": "search::SelectNextMatch", |
|
"shift-enter": "search::SelectPreviousMatch", |
|
"ctrl-shift-enter": "editor::ToggleFoldAll", |
|
"alt-enter": "search::SelectAllMatches", |
|
"ctrl-f": "search::FocusSearch", |
|
"ctrl-h": "search::ToggleReplace", |
|
"ctrl-l": "search::ToggleSelection", |
|
}, |
|
}, |
|
{ |
|
"context": "BufferSearchBar && in_replace > Editor", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"enter": "search::ReplaceNext", |
|
"ctrl-enter": "search::ReplaceAll", |
|
}, |
|
}, |
|
{ |
|
"context": "BufferSearchBar && !in_replace > Editor", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-enter": "editor::Newline", |
|
"shift-enter": "search::SelectPreviousMatch", |
|
}, |
|
}, |
|
{ |
|
"context": "BufferSearchBar && !in_replace > Editor", |
|
"bindings": { |
|
"up": "search::PreviousHistoryQuery", |
|
"down": "search::NextHistoryQuery", |
|
}, |
|
}, |
|
{ |
|
"context": "ProjectSearchBar", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"escape": "project_search::ToggleFocus", |
|
"ctrl-shift-f": "search::FocusSearch", |
|
"ctrl-shift-h": "search::ToggleReplace", |
|
"alt-r": "search::ToggleRegex", // vscode |
|
}, |
|
}, |
|
{ |
|
"context": "ProjectSearchBar > Editor", |
|
"bindings": { |
|
"up": "search::PreviousHistoryQuery", |
|
"down": "search::NextHistoryQuery", |
|
}, |
|
}, |
|
{ |
|
"context": "ProjectSearchBar && in_replace > Editor", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"enter": "search::ReplaceNext", |
|
"ctrl-alt-enter": "search::ReplaceAll", |
|
}, |
|
}, |
|
{ |
|
"context": "ProjectSearchBar && !in_replace > Editor", |
|
"bindings": { |
|
"ctrl-enter": "editor::Newline", |
|
}, |
|
}, |
|
{ |
|
"context": "ProjectSearchView", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"escape": "project_search::ToggleFocus", |
|
"ctrl-shift-h": "search::ToggleReplace", |
|
"alt-r": "search::ToggleRegex", // vscode |
|
}, |
|
}, |
|
{ |
|
"context": "Pane", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"win-1": ["pane::ActivateItem", 0], |
|
"win-2": ["pane::ActivateItem", 1], |
|
"win-3": ["pane::ActivateItem", 2], |
|
"win-4": ["pane::ActivateItem", 3], |
|
"win-5": ["pane::ActivateItem", 4], |
|
"win-6": ["pane::ActivateItem", 5], |
|
"win-7": ["pane::ActivateItem", 6], |
|
"win-8": ["pane::ActivateItem", 7], |
|
"win-9": ["pane::ActivateItem", 8], |
|
"alt-0": "pane::ActivateLastItem", |
|
"ctrl-pageup": "pane::ActivatePreviousItem", |
|
"ctrl-pagedown": "pane::ActivateNextItem", |
|
"ctrl-shift-pageup": "pane::SwapItemLeft", |
|
"ctrl-shift-pagedown": "pane::SwapItemRight", |
|
"ctrl-f4": ["pane::CloseActiveItem", { "close_pinned": false }], |
|
"cmd-w": [ |
|
"pane::CloseActiveItem", |
|
{ |
|
"close_pinned": false, |
|
}, |
|
], |
|
"ctrl-shift-alt-t": ["pane::CloseOtherItems", { "close_pinned": false }], |
|
"ctrl-shift-alt-w": "workspace::CloseInactiveTabsAndPanes", |
|
"ctrl-k e": ["pane::CloseItemsToTheLeft", { "close_pinned": false }], |
|
"ctrl-k t": ["pane::CloseItemsToTheRight", { "close_pinned": false }], |
|
"ctrl-k u": ["pane::CloseCleanItems", { "close_pinned": false }], |
|
"ctrl-k w": ["pane::CloseAllItems", { "close_pinned": false }], |
|
"ctrl-k ctrl-w": "workspace::CloseAllItemsAndPanes", |
|
"back": "pane::GoBack", |
|
"alt--": "pane::GoBack", |
|
"alt-left": "pane::GoBack", |
|
"forward": "pane::GoForward", |
|
"alt-=": "pane::GoForward", |
|
"alt-right": "pane::GoForward", |
|
"f3": "search::SelectNextMatch", |
|
"shift-f3": "search::SelectPreviousMatch", |
|
"ctrl-shift-f": "project_search::ToggleFocus", |
|
"shift-alt-h": "search::ToggleReplace", |
|
"alt-l": "search::ToggleSelection", |
|
"alt-enter": "search::SelectAllMatches", |
|
"alt-c": "search::ToggleCaseSensitive", |
|
"alt-w": "search::ToggleWholeWord", |
|
"alt-f": "project_search::ToggleFilters", |
|
"ctrl-shift-enter": "project_search::ToggleAllSearchResults", |
|
"alt-r": "search::ToggleRegex", |
|
// "ctrl-shift-alt-x": "search::ToggleRegex", |
|
"ctrl-k shift-enter": "pane::TogglePinTab", |
|
}, |
|
}, |
|
// Bindings from VS Code |
|
{ |
|
"context": "Editor", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-[": "editor::Outdent", |
|
"ctrl-]": "editor::Indent", |
|
"ctrl-alt-up": ["editor::AddSelectionAbove", { "skip_soft_wrap": true }], // Insert Cursor Above |
|
"ctrl-alt-down": [ |
|
"editor::AddSelectionBelow", |
|
{ "skip_soft_wrap": true }, |
|
], // Insert Cursor Below |
|
"ctrl-shift-k": "editor::DeleteLine", |
|
"alt-up": "editor::MoveLineUp", |
|
"alt-down": "editor::MoveLineDown", |
|
"shift-alt-up": "editor::DuplicateLineUp", |
|
"shift-alt-down": "editor::DuplicateLineDown", |
|
"shift-alt-right": "editor::SelectLargerSyntaxNode", // Expand selection |
|
"shift-alt-left": "editor::SelectSmallerSyntaxNode", // Shrink selection |
|
"ctrl-shift-l": "editor::SelectAllMatches", // Select all occurrences of current selection |
|
"ctrl-f2": "editor::SelectAllMatches", // Select all occurrences of current word |
|
"ctrl-d": ["editor::SelectNext", { "replace_newest": false }], // editor.action.addSelectionToNextFindMatch / find_under_expand |
|
"ctrl-f3": ["editor::SelectNext", { "replace_newest": false }], // editor.action.addSelectionToNextFindMatch / find_under_expand |
|
"ctrl-k ctrl-d": ["editor::SelectNext", { "replace_newest": true }], // editor.action.moveSelectionToNextFindMatch / find_under_expand_skip |
|
"ctrl-shift-f3": ["editor::SelectPrevious", { "replace_newest": false }], // editor.action.addSelectionToNextFindMatch / find_under_expand |
|
"ctrl-k ctrl-i": "editor::Hover", |
|
"ctrl-k ctrl-b": "editor::BlameHover", |
|
"ctrl-k ctrl-f": "editor::FormatSelections", |
|
"ctrl-/": ["editor::ToggleComments", { "advance_downwards": false }], |
|
"ctrl-k ctrl-c": [ |
|
"editor::ToggleComments", |
|
{ "advance_downwards": false }, |
|
], |
|
"ctrl-k ctrl-/": "editor::ToggleBlockComments", |
|
"shift-alt-a": "editor::ToggleBlockComments", |
|
"f8": [ |
|
"editor::GoToDiagnostic", |
|
{ "severity": { "min": "hint", "max": "error" } }, |
|
], |
|
"shift-f8": [ |
|
"editor::GoToPreviousDiagnostic", |
|
{ "severity": { "min": "hint", "max": "error" } }, |
|
], |
|
"f2": "editor::Rename", |
|
"f12": "editor::GoToDefinition", |
|
"alt-f12": "editor::GoToDefinitionSplit", |
|
"ctrl-f12": "editor::GoToImplementation", |
|
"shift-alt-f12": "editor::FindAllReferences", |
|
"ctrl-shift-\\": "editor::MoveToEnclosingBracket", |
|
"ctrl-shift-[": "editor::Fold", |
|
"ctrl-shift-]": "editor::UnfoldLines", |
|
"ctrl-k ctrl-l": "editor::ToggleFold", |
|
"ctrl-k ctrl-[": "editor::FoldRecursive", |
|
"ctrl-k ctrl-]": "editor::UnfoldRecursive", |
|
"ctrl-k ctrl-1": "editor::FoldAtLevel_1", |
|
"ctrl-k ctrl-2": "editor::FoldAtLevel_2", |
|
"ctrl-k ctrl-3": "editor::FoldAtLevel_3", |
|
"ctrl-k ctrl-4": "editor::FoldAtLevel_4", |
|
"ctrl-k ctrl-5": "editor::FoldAtLevel_5", |
|
"ctrl-k ctrl-6": "editor::FoldAtLevel_6", |
|
"ctrl-k ctrl-7": "editor::FoldAtLevel_7", |
|
"ctrl-k ctrl-8": "editor::FoldAtLevel_8", |
|
"ctrl-k ctrl-9": "editor::FoldAtLevel_9", |
|
"ctrl-k ctrl-0": "editor::FoldAll", |
|
"ctrl-k ctrl-j": "editor::UnfoldAll", |
|
"ctrl-space": "editor::ShowCompletions", |
|
"ctrl-shift-space": "editor::ShowWordCompletions", |
|
"ctrl-.": "editor::ToggleCodeActions", |
|
"ctrl-k r": "editor::RevealInFileManager", |
|
"ctrl-k p": "workspace::CopyPath", |
|
"ctrl-k ctrl-shift-c": "workspace::CopyPath", |
|
"ctrl-\\": "pane::SplitRight", |
|
"alt-.": "editor::GoToHunk", |
|
"alt-,": "editor::GoToPreviousHunk", |
|
}, |
|
}, |
|
{ |
|
"context": "Editor && extension == md", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-k v": "markdown::OpenPreviewToTheSide", |
|
"ctrl-shift-v": "markdown::OpenPreview", |
|
}, |
|
}, |
|
{ |
|
"context": "Editor && extension == svg", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-k v": "svg::OpenPreviewToTheSide", |
|
"ctrl-shift-v": "svg::OpenPreview", |
|
}, |
|
}, |
|
{ |
|
"context": "Editor && mode == full", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-shift-o": "outline::Toggle", |
|
"ctrl-g": "go_to_line::Toggle", |
|
}, |
|
}, |
|
{ |
|
"context": "Workspace", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
// Change the default action on `menu::Confirm` by setting the parameter |
|
// "ctrl-alt-o": ["projects::OpenRecent", { "create_new_window": true }], |
|
"ctrl-r": ["projects::OpenRecent", { "create_new_window": false }], |
|
// Change to open path modal for existing remote connection by setting the parameter |
|
// "ctrl-shift-alt-o": "["projects::OpenRemote", { "from_existing_connection": true }]", |
|
"ctrl-shift-alt-o": [ |
|
"projects::OpenRemote", |
|
{ "from_existing_connection": false, "create_new_window": false }, |
|
], |
|
// "shift-alt-b": "branches::OpenRecent", |
|
"shift-alt-w": "git::Worktree", |
|
"shift-alt-enter": "toast::RunAction", |
|
"ctrl-shift-`": "workspace::NewTerminal", |
|
"ctrl-s": "workspace::Save", |
|
"ctrl-k ctrl-shift-s": "workspace::SaveWithoutFormat", |
|
"ctrl-shift-s": "workspace::SaveAs", |
|
"ctrl-n": "workspace::NewFile", |
|
"ctrl-shift-n": "workspace::NewWindow", |
|
"ctrl-`": "terminal_panel::Toggle", |
|
"f10": ["app_menu::OpenApplicationMenu", "Zed"], |
|
"ctrl-1": ["workspace::ActivatePane", 0], |
|
"ctrl-2": ["workspace::ActivatePane", 1], |
|
"ctrl-3": ["workspace::ActivatePane", 2], |
|
"ctrl-4": ["workspace::ActivatePane", 3], |
|
"ctrl-5": ["workspace::ActivatePane", 4], |
|
"ctrl-6": ["workspace::ActivatePane", 5], |
|
"ctrl-7": ["workspace::ActivatePane", 6], |
|
"ctrl-8": ["workspace::ActivatePane", 7], |
|
"ctrl-9": ["workspace::ActivatePane", 8], |
|
"ctrl-b": "workspace::ToggleRightDock", |
|
"cmd-b": "workspace::ToggleLeftDock", |
|
"ctrl-j": "workspace::ToggleBottomDock", |
|
"ctrl-alt-j": "multi_workspace::ToggleWorkspaceSidebar", |
|
"ctrl-alt-;": "multi_workspace::FocusWorkspaceSidebar", |
|
"ctrl-shift-y": "workspace::ToggleAllDocks", |
|
"alt-r": "workspace::ResetActiveDockSize", |
|
// For 0px parameter, uses UI font size value. |
|
"shift-alt--": ["workspace::DecreaseActiveDockSize", { "px": 0 }], |
|
"shift-alt-=": ["workspace::IncreaseActiveDockSize", { "px": 0 }], |
|
"shift-alt-0": "workspace::ResetOpenDocksSize", |
|
"ctrl-shift-f": "pane::DeploySearch", |
|
"ctrl-shift-h": ["pane::DeploySearch", { "replace_enabled": true }], |
|
"ctrl-shift-t": "pane::ReopenClosedItem", |
|
"ctrl-k ctrl-s": "zed::OpenKeymap", |
|
"ctrl-k ctrl-t": "theme_selector::Toggle", |
|
"ctrl-k ctrl-shift-t": "theme::ToggleMode", |
|
"ctrl-alt-super-p": "settings_profile_selector::Toggle", |
|
"ctrl-t": "project_symbols::Toggle", |
|
"ctrl-p": "file_finder::Toggle", |
|
"ctrl-shift-tab": ["tab_switcher::Toggle", { "select_last": true }], |
|
"ctrl-tab": "tab_switcher::Toggle", |
|
"ctrl-e": "file_finder::Toggle", |
|
"f1": "command_palette::Toggle", |
|
"ctrl-shift-p": "command_palette::Toggle", |
|
"ctrl-shift-m": "diagnostics::Deploy", |
|
"ctrl-shift-e": "project_panel::ToggleFocus", |
|
"ctrl-shift-b": "outline_panel::ToggleFocus", |
|
"ctrl-shift-g": "git_panel::ToggleFocus", |
|
"ctrl-shift-d": "debug_panel::ToggleFocus", |
|
"ctrl-shift-/": "agent::ToggleFocus", |
|
"ctrl-k s": "workspace::SaveAll", |
|
"ctrl-k n": "encoding_selector::Toggle", |
|
"ctrl-k m": "language_selector::Toggle", |
|
"ctrl-m ctrl-m": "toolchain::AddToolchain", |
|
"escape": "workspace::Unfollow", |
|
"ctrl-k ctrl-left": "workspace::ActivatePaneLeft", |
|
"ctrl-k ctrl-right": "workspace::ActivatePaneRight", |
|
"ctrl-k ctrl-up": "workspace::ActivatePaneUp", |
|
"ctrl-k ctrl-down": "workspace::ActivatePaneDown", |
|
"ctrl-k shift-left": "workspace::SwapPaneLeft", |
|
"ctrl-k shift-right": "workspace::SwapPaneRight", |
|
"ctrl-k shift-up": "workspace::SwapPaneUp", |
|
"ctrl-k shift-down": "workspace::SwapPaneDown", |
|
"ctrl-shift-x": "zed::Extensions", |
|
// All task parameters are captured and unchanged between reruns by default. |
|
// Use the `"reevaluate_context"` parameter to control this. |
|
"ctrl-shift-r": ["task::Rerun", { "reevaluate_context": false }], |
|
"alt-t": "task::Rerun", |
|
"shift-alt-t": "task::Spawn", |
|
"shift-alt-r": ["task::Spawn", { "reveal_target": "center" }], |
|
// also possible to spawn tasks by name: |
|
// "foo-bar": ["task::Spawn", { "task_name": "MyTask", "reveal_target": "dock" }] |
|
// or by tag: |
|
// "foo-bar": ["task::Spawn", { "task_tag": "MyTag" }], |
|
"f5": "debugger::Rerun", |
|
"ctrl-f4": "workspace::CloseActiveDock", |
|
"ctrl-w": "workspace::CloseActiveDock", |
|
}, |
|
}, |
|
{ |
|
"context": "Workspace && debugger_running", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
// Unbind `f5` to avoid dispatching the `debugger::Rerun` as that is what `f5` is bound to in the `Workspace` |
|
// context. |
|
"f5": null, |
|
}, |
|
}, |
|
{ |
|
"context": "Workspace && debugger_stopped", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"f5": "debugger::Continue", |
|
}, |
|
}, |
|
{ |
|
"context": "ThreadsSidebar", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-n": "agents_sidebar::NewThreadInGroup", |
|
"left": "menu::SelectParent", |
|
"right": "menu::SelectChild", |
|
"enter": "menu::Confirm", |
|
"ctrl-f": "agents_sidebar::FocusSidebarFilter", |
|
"ctrl-g": "agents_sidebar::ToggleThreadHistory", |
|
"shift-backspace": "agent::ArchiveSelectedThread", |
|
"ctrl-backspace": "agent::RemoveSelectedThread", |
|
"ctrl-tab": "agents_sidebar::ToggleThreadSwitcher", |
|
"ctrl-shift-tab": [ |
|
"agents_sidebar::ToggleThreadSwitcher", |
|
{ "select_last": true }, |
|
], |
|
}, |
|
}, |
|
{ |
|
"context": "ThreadsSidebar && not_searching", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"space": "menu::Confirm", |
|
"shift-r": "agent::RenameSelectedThread", |
|
}, |
|
}, |
|
{ |
|
"context": "ThreadSwitcher", |
|
"bindings": { |
|
"ctrl-tab": "agents_sidebar::ToggleThreadSwitcher", |
|
"ctrl-shift-tab": [ |
|
"agents_sidebar::ToggleThreadSwitcher", |
|
{ "select_last": true }, |
|
], |
|
}, |
|
}, |
|
{ |
|
"context": "ApplicationMenu", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"f10": "menu::Cancel", |
|
"left": "app_menu::ActivateMenuLeft", |
|
"right": "app_menu::ActivateMenuRight", |
|
}, |
|
}, |
|
// Bindings from Sublime Text |
|
{ |
|
"context": "Editor", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-u": "editor::UndoSelection", |
|
"ctrl-shift-u": "editor::RedoSelection", |
|
"ctrl-shift-j": "editor::JoinLines", |
|
"ctrl-alt-backspace": "editor::DeleteToPreviousSubwordStart", |
|
"shift-alt-h": "editor::DeleteToPreviousSubwordStart", |
|
"ctrl-alt-delete": "editor::DeleteToNextSubwordEnd", |
|
"shift-alt-d": "editor::DeleteToNextSubwordEnd", |
|
"ctrl-alt-left": "editor::MoveToPreviousSubwordStart", |
|
"ctrl-alt-right": "editor::MoveToNextSubwordEnd", |
|
"ctrl-shift-alt-left": "editor::SelectToPreviousSubwordStart", |
|
"ctrl-shift-alt-right": "editor::SelectToNextSubwordEnd", |
|
}, |
|
}, |
|
// Bindings from Atom |
|
{ |
|
"context": "Pane", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-k up": "pane::SplitUp", |
|
"ctrl-k down": "pane::SplitDown", |
|
"ctrl-k left": "pane::SplitLeft", |
|
"ctrl-k right": "pane::SplitRight", |
|
}, |
|
}, |
|
// Bindings that should be unified with bindings for more general actions |
|
{ |
|
"context": "Editor && renaming", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"enter": "editor::ConfirmRename", |
|
}, |
|
}, |
|
{ |
|
"context": "Editor && showing_completions", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"enter": "editor::ConfirmCompletion", |
|
"shift-enter": "editor::ConfirmCompletionReplace", |
|
"tab": "editor::ComposeCompletion", |
|
}, |
|
}, |
|
{ |
|
"context": "Editor && in_snippet && has_next_tabstop && !showing_completions", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"tab": "editor::NextSnippetTabstop", |
|
}, |
|
}, |
|
{ |
|
"context": "Editor && in_snippet && has_previous_tabstop && !showing_completions", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"shift-tab": "editor::PreviousSnippetTabstop", |
|
}, |
|
}, |
|
// Bindings for accepting edit predictions |
|
// |
|
// alt-l is provided as an alternative to tab/alt-tab. and will be displayed in the UI. This is |
|
// because alt-tab may not be available, as it is often used for window switching. |
|
{ |
|
"context": "Editor && edit_prediction", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"alt-tab": "editor::AcceptEditPrediction", |
|
"alt-l": "editor::AcceptEditPrediction", |
|
"alt-k": "editor::AcceptNextWordEditPrediction", |
|
"alt-j": "editor::AcceptNextLineEditPrediction", |
|
}, |
|
}, |
|
{ |
|
"context": "Editor && edit_prediction && edit_prediction_mode == eager && !showing_completions", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"tab": "editor::AcceptEditPrediction", |
|
}, |
|
}, |
|
{ |
|
"context": "Editor && showing_code_actions", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"enter": "editor::ConfirmCodeAction", |
|
}, |
|
}, |
|
{ |
|
"context": "Editor && (showing_code_actions || showing_completions)", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-p": "editor::ContextMenuPrevious", |
|
"up": "editor::ContextMenuPrevious", |
|
"ctrl-n": "editor::ContextMenuNext", |
|
"down": "editor::ContextMenuNext", |
|
"pageup": "editor::ContextMenuFirst", |
|
"pagedown": "editor::ContextMenuLast", |
|
}, |
|
}, |
|
{ |
|
"context": "Editor && showing_signature_help && !showing_completions", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"up": "editor::SignatureHelpPrevious", |
|
"down": "editor::SignatureHelpNext", |
|
}, |
|
}, |
|
// Custom bindings |
|
{ |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-shift-alt-f": "workspace::FollowNextCollaborator", |
|
// Only available in debug builds: opens an element inspector for development. |
|
"shift-alt-i": "dev::ToggleInspector", |
|
}, |
|
}, |
|
{ |
|
"context": "!Terminal", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-shift-c": "collab_panel::ToggleFocus", |
|
}, |
|
}, |
|
{ |
|
"context": "!AcpThread > Editor && mode == full", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"alt-enter": "editor::OpenExcerpts", |
|
"shift-enter": "editor::ExpandExcerpts", |
|
"ctrl-alt-enter": "editor::OpenExcerptsSplit", |
|
"ctrl-shift-e": "pane::RevealInProjectPanel", |
|
"ctrl-f8": "editor::GoToHunk", |
|
"ctrl-shift-f8": "editor::GoToPreviousHunk", |
|
"ctrl-enter": "assistant::InlineAssist", |
|
"ctrl-shift-;": "editor::ToggleInlayHints", |
|
}, |
|
}, |
|
{ |
|
"context": "InlineAssistant", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-[": "agent::CyclePreviousInlineAssist", |
|
"ctrl-]": "agent::CycleNextInlineAssist", |
|
"ctrl-shift-enter": "inline_assistant::ThumbsUpResult", |
|
"ctrl-shift-delete": "inline_assistant::ThumbsDownResult", |
|
}, |
|
}, |
|
{ |
|
"context": "Prompt", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"left": "menu::SelectPrevious", |
|
"right": "menu::SelectNext", |
|
"h": "menu::SelectPrevious", |
|
"l": "menu::SelectNext", |
|
}, |
|
}, |
|
{ |
|
"context": "ProjectSearchBar && !in_replace", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-enter": "project_search::SearchInNew", |
|
}, |
|
}, |
|
{ |
|
"context": "OutlinePanel && not_editing", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"left": "outline_panel::CollapseSelectedEntry", |
|
"right": "outline_panel::ExpandSelectedEntry", |
|
// "shift-alt-c": "outline_panel::CopyPath", |
|
"shift-alt-c": "workspace::CopyPath", |
|
"ctrl-shift-alt-c": "workspace::CopyRelativePath", |
|
"ctrl-alt-r": "outline_panel::RevealInFileManager", |
|
"space": "outline_panel::OpenSelectedEntry", |
|
"shift-down": "menu::SelectNext", |
|
"shift-up": "menu::SelectPrevious", |
|
"alt-enter": "editor::OpenExcerpts", |
|
"ctrl-alt-enter": "editor::OpenExcerptsSplit", |
|
}, |
|
}, |
|
{ |
|
"context": "ProjectPanel", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"left": "project_panel::CollapseSelectedEntry", |
|
"ctrl-left": "project_panel::CollapseAllEntries", |
|
"right": "project_panel::ExpandSelectedEntry", |
|
"ctrl-n": "project_panel::NewFile", |
|
"alt-n": "project_panel::NewDirectory", |
|
"ctrl-x": "project_panel::Cut", |
|
"ctrl-insert": "project_panel::Copy", |
|
"ctrl-c": "project_panel::Copy", |
|
"shift-insert": "project_panel::Paste", |
|
"ctrl-v": "project_panel::Paste", |
|
// "shift-alt-c": "project_panel::CopyPath", |
|
"shift-alt-c": "workspace::CopyPath", |
|
"ctrl-k ctrl-shift-c": "workspace::CopyRelativePath", |
|
"ctrl-z": "project_panel::Undo", |
|
"ctrl-shift-z": "project_panel::Redo", |
|
"enter": "project_panel::Rename", |
|
"f2": "project_panel::Rename", |
|
"backspace": ["project_panel::Trash", { "skip_prompt": false }], |
|
"delete": ["project_panel::Trash", { "skip_prompt": false }], |
|
"shift-delete": ["project_panel::Delete", { "skip_prompt": false }], |
|
"ctrl-backspace": ["project_panel::Delete", { "skip_prompt": false }], |
|
"ctrl-delete": ["project_panel::Delete", { "skip_prompt": false }], |
|
"ctrl-alt-r": "project_panel::RevealInFileManager", |
|
// "ctrl-shift-enter": "project_panel::OpenWithSystem", |
|
"ctrl-shift-enter": "workspace::OpenWithSystem", |
|
"alt-d": "project_panel::CompareMarkedFiles", |
|
"ctrl-k ctrl-shift-f": "project_panel::NewSearchInDirectory", |
|
"shift-down": "menu::SelectNext", |
|
"shift-up": "menu::SelectPrevious", |
|
"escape": "menu::Cancel", |
|
}, |
|
}, |
|
{ |
|
"context": "ProjectPanel && not_editing", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"space": "project_panel::Open", |
|
}, |
|
}, |
|
{ |
|
"context": "GitPanel", |
|
"bindings": { |
|
"ctrl-1": "git_panel::ActivateChangesTab", |
|
"ctrl-2": "git_panel::ActivateHistoryTab", |
|
}, |
|
}, |
|
{ |
|
"context": "GitPanel && ChangesList && !GitBranchSelector", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"up": "git_panel::PreviousEntry", |
|
"down": "git_panel::NextEntry", |
|
"left": "git_panel::CollapseSelectedEntry", |
|
"right": "git_panel::ExpandSelectedEntry", |
|
"enter": "menu::Confirm", |
|
"alt-y": "git::StageFile", |
|
"shift-alt-y": "git::UnstageFile", |
|
"space": "git::ToggleStaged", |
|
"shift-space": "git::StageRange", |
|
"tab": "git_panel::FocusEditor", |
|
"shift-tab": "git_panel::FocusEditor", |
|
"escape": "git_panel::ToggleFocus", |
|
"alt-enter": "menu::SecondaryConfirm", |
|
"delete": ["git::RestoreFile", { "skip_prompt": false }], |
|
"backspace": ["git::RestoreFile", { "skip_prompt": false }], |
|
"shift-delete": ["git::RestoreFile", { "skip_prompt": false }], |
|
"ctrl-backspace": ["git::RestoreFile", { "skip_prompt": false }], |
|
"ctrl-delete": ["git::RestoreFile", { "skip_prompt": false }], |
|
}, |
|
}, |
|
{ |
|
"context": "GitPanel && CommitEditor", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"escape": "git::Cancel", |
|
}, |
|
}, |
|
{ |
|
"context": "GitCommit > Editor && mode == auto_height", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"escape": "menu::Cancel", |
|
"enter": "editor::Newline", |
|
"ctrl-enter": "git::Commit", |
|
"ctrl-shift-enter": "git::Amend", |
|
"alt-l": "git::GenerateCommitMessage", |
|
}, |
|
}, |
|
{ |
|
"context": "GitPanel", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-g ctrl-g": "git::Fetch", |
|
"ctrl-g up": "git::Push", |
|
"ctrl-g down": "git::Pull", |
|
"ctrl-g shift-down": "git::PullRebase", |
|
"ctrl-g shift-up": "git::ForcePush", |
|
"ctrl-g d": "git::Diff", |
|
"ctrl-g backspace": "git::RestoreTrackedFiles", |
|
"ctrl-g shift-backspace": "git::TrashUntrackedFiles", |
|
"ctrl-space": "git::StageAll", |
|
"ctrl-shift-space": "git::UnstageAll", |
|
"ctrl-enter": "git::Commit", |
|
"ctrl-shift-enter": "git::Amend", |
|
}, |
|
}, |
|
{ |
|
"context": "GitDiff > Editor", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-enter": "git::Commit", |
|
"ctrl-shift-enter": "git::Amend", |
|
"ctrl-space": "git::StageAll", |
|
"ctrl-shift-space": "git::UnstageAll", |
|
"ctrl-k ctrl-r": "git::RestoreAndNext", |
|
}, |
|
}, |
|
{ |
|
"context": "AskPass > Editor", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"enter": "menu::Confirm", |
|
}, |
|
}, |
|
{ |
|
"context": "CommitEditor > Editor", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"escape": "git_panel::FocusChanges", |
|
"tab": "git_panel::FocusChanges", |
|
"shift-tab": "git_panel::FocusChanges", |
|
"enter": "editor::Newline", |
|
"ctrl-enter": "git::Commit", |
|
"ctrl-shift-enter": "git::Amend", |
|
"alt-up": "git_panel::FocusChanges", |
|
"alt-l": "git::GenerateCommitMessage", |
|
"shift-escape": "git::ExpandCommitEditor", |
|
"alt-shift-escape": "git::ToggleFillCommitEditor", |
|
}, |
|
}, |
|
{ |
|
"context": "DebugPanel", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-t": "debugger::ToggleThreadPicker", |
|
"ctrl-i": "debugger::ToggleSessionPicker", |
|
"shift-alt-escape": "debugger::ToggleExpandItem", |
|
}, |
|
}, |
|
{ |
|
"context": "VariableList", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"left": "variable_list::CollapseSelectedEntry", |
|
"right": "variable_list::ExpandSelectedEntry", |
|
"enter": "variable_list::EditVariable", |
|
"ctrl-c": "variable_list::CopyVariableValue", |
|
"ctrl-alt-c": "variable_list::CopyVariableName", |
|
"delete": "variable_list::RemoveWatch", |
|
"backspace": "variable_list::RemoveWatch", |
|
"alt-enter": "variable_list::AddWatch", |
|
}, |
|
}, |
|
{ |
|
"context": "BreakpointList", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"space": "debugger::ToggleEnableBreakpoint", |
|
"backspace": "debugger::UnsetBreakpoint", |
|
"left": "debugger::PreviousBreakpointProperty", |
|
"right": "debugger::NextBreakpointProperty", |
|
}, |
|
}, |
|
{ |
|
"context": "CollabPanel && not_editing", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-backspace": "collab_panel::Remove", |
|
"space": "menu::Confirm", |
|
}, |
|
}, |
|
{ |
|
"context": "CollabPanel", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"alt-up": "collab_panel::MoveChannelUp", |
|
"alt-down": "collab_panel::MoveChannelDown", |
|
"alt-enter": "collab_panel::OpenSelectedChannelNotes", |
|
"shift-enter": "collab_panel::ToggleSelectedChannelFavorite", |
|
}, |
|
}, |
|
{ |
|
"context": "(CollabPanel && editing) > Editor", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"space": "collab_panel::InsertSpace", |
|
}, |
|
}, |
|
{ |
|
"context": "ChannelModal", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"tab": "channel_modal::ToggleMode", |
|
}, |
|
}, |
|
{ |
|
"context": "Picker > Editor", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"escape": "menu::Cancel", |
|
"up": "menu::SelectPrevious", |
|
"down": "menu::SelectNext", |
|
"tab": "picker::ConfirmCompletion", |
|
"alt-enter": ["picker::ConfirmInput", { "secondary": false }], |
|
}, |
|
}, |
|
{ |
|
"context": "ChannelModal > Picker > Editor", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"tab": "channel_modal::ToggleMode", |
|
}, |
|
}, |
|
{ |
|
"context": "ToolchainSelector", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-shift-a": "toolchain::AddToolchain", |
|
}, |
|
}, |
|
{ |
|
"context": "FileFinder || (FileFinder > Picker > Editor)", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-p": "file_finder::Toggle", |
|
"ctrl-shift-a": "file_finder::ToggleSplitMenu", |
|
"ctrl-shift-i": "file_finder::ToggleFilterMenu", |
|
}, |
|
}, |
|
{ |
|
"context": "FileFinder > Picker > Editor && end_of_input", |
|
"bindings": { |
|
// "right": "file_finder::OpenWithoutDismiss", |
|
}, |
|
}, |
|
{ |
|
"context": "FileFinder || (FileFinder > Picker > Editor) || (FileFinder > Picker > menu)", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-shift-p": "file_finder::SelectPrevious", |
|
"ctrl-j": "pane::SplitDown", |
|
"ctrl-k": "pane::SplitUp", |
|
"ctrl-h": "pane::SplitLeft", |
|
"ctrl-l": "pane::SplitRight", |
|
}, |
|
}, |
|
{ |
|
"context": "RecentProjects || (RecentProjects > Picker > Editor)", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-k": "recent_projects::ToggleActionsMenu", |
|
"ctrl-shift-a": "workspace::AddFolderToProject", |
|
"shift-backspace": "recent_projects::RemoveSelected", |
|
"ctrl-shift-enter": "recent_projects::AddToWorkspace", |
|
}, |
|
}, |
|
{ |
|
"context": "TabSwitcher", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-shift-tab": "menu::SelectPrevious", |
|
"ctrl-up": "menu::SelectPrevious", |
|
"ctrl-down": "menu::SelectNext", |
|
"ctrl-backspace": "tab_switcher::CloseSelectedItem", |
|
}, |
|
}, |
|
{ |
|
"context": "StashList || (StashList > Picker > Editor)", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-shift-backspace": "stash_picker::DropStashItem", |
|
"ctrl-shift-v": "stash_picker::ShowStashItem", |
|
}, |
|
}, |
|
{ |
|
"context": "Terminal", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-alt-space": "terminal::ShowCharacterPalette", |
|
"ctrl-insert": "terminal::Copy", |
|
"ctrl-shift-c": "terminal::Copy", |
|
"shift-insert": "terminal::Paste", |
|
"ctrl-v": "terminal::Paste", |
|
"ctrl-shift-v": "terminal::Paste", |
|
"ctrl-alt-v": "terminal::PasteText", |
|
"ctrl-i": "assistant::InlineAssist", |
|
"alt-b": ["terminal::SendText", "\u001bb"], |
|
"alt-f": ["terminal::SendText", "\u001bf"], |
|
"alt-.": ["terminal::SendText", "\u001b."], |
|
"ctrl-delete": ["terminal::SendText", "\u001bd"], |
|
"ctrl-n": "workspace::NewTerminal", |
|
// Overrides for conflicting keybindings |
|
"alt-f4": "workspace::CloseWindow", |
|
"ctrl-b": ["terminal::SendKeystroke", "ctrl-b"], |
|
"ctrl-c": ["terminal::SendKeystroke", "ctrl-c"], |
|
"ctrl-e": ["terminal::SendKeystroke", "ctrl-e"], |
|
"ctrl-o": ["terminal::SendKeystroke", "ctrl-o"], |
|
"ctrl-w": ["terminal::SendKeystroke", "ctrl-w"], |
|
"ctrl-q": ["terminal::SendKeystroke", "ctrl-q"], |
|
"ctrl-r": ["terminal::SendKeystroke", "ctrl-r"], |
|
"ctrl-backspace": ["terminal::SendKeystroke", "ctrl-w"], |
|
"ctrl-shift-a": "editor::SelectAll", |
|
"ctrl-shift-f": "buffer_search::Deploy", |
|
"ctrl-shift-l": "terminal::Clear", |
|
"ctrl-shift-w": "pane::CloseActiveItem", |
|
"up": ["terminal::SendKeystroke", "up"], |
|
"pageup": ["terminal::SendKeystroke", "pageup"], |
|
"down": ["terminal::SendKeystroke", "down"], |
|
"pagedown": ["terminal::SendKeystroke", "pagedown"], |
|
"escape": ["terminal::SendKeystroke", "escape"], |
|
"enter": ["terminal::SendKeystroke", "enter"], |
|
"shift-pageup": "terminal::ScrollPageUp", |
|
"shift-pagedown": "terminal::ScrollPageDown", |
|
"shift-up": "terminal::ScrollLineUp", |
|
"shift-down": "terminal::ScrollLineDown", |
|
"shift-home": "terminal::ScrollToTop", |
|
"shift-end": "terminal::ScrollToBottom", |
|
"ctrl-shift-space": "terminal::ToggleViMode", |
|
"ctrl-shift-r": "terminal::RerunTask", |
|
"ctrl-alt-r": "terminal::RerunTask", |
|
"alt-t": "terminal::RerunTask", |
|
"ctrl-shift-5": "pane::SplitRight", |
|
"ctrl-shift-.": "agent::AddSelectionToThread", |
|
}, |
|
}, |
|
{ |
|
"context": "AgentPanel > Terminal", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-n": "agent::NewThread", |
|
}, |
|
}, |
|
{ |
|
"context": "Terminal && selection", |
|
"bindings": { |
|
"ctrl-c": "terminal::Copy", |
|
}, |
|
}, |
|
{ |
|
"context": "ZedPredictModal", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"escape": "menu::Cancel", |
|
}, |
|
}, |
|
{ |
|
"context": "ConfigureContextServerModal > Editor", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"escape": "menu::Cancel", |
|
"enter": "editor::Newline", |
|
"ctrl-enter": "menu::Confirm", |
|
}, |
|
}, |
|
{ |
|
"context": "ContextServerToolsModal", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"escape": "menu::Cancel", |
|
}, |
|
}, |
|
{ |
|
"context": "OnboardingAiConfigurationModal", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"escape": "menu::Cancel", |
|
}, |
|
}, |
|
{ |
|
"context": "Diagnostics", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-r": "diagnostics::ToggleDiagnosticsRefresh", |
|
}, |
|
}, |
|
{ |
|
"context": "DebugConsole > Editor", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"enter": "menu::Confirm", |
|
"alt-enter": "console::WatchExpression", |
|
}, |
|
}, |
|
{ |
|
"context": "RunModal", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-tab": "pane::ActivateNextItem", |
|
"ctrl-shift-tab": "pane::ActivatePreviousItem", |
|
}, |
|
}, |
|
{ |
|
"context": "MarkdownPreview", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"pageup": "markdown::ScrollPageUp", |
|
"pagedown": "markdown::ScrollPageDown", |
|
"up": "markdown::ScrollUp", |
|
"down": "markdown::ScrollDown", |
|
"alt-up": "markdown::ScrollUpByItem", |
|
"alt-down": "markdown::ScrollDownByItem", |
|
"ctrl-home": "markdown::ScrollToTop", |
|
"ctrl-end": "markdown::ScrollToBottom", |
|
"find": "buffer_search::Deploy", |
|
"ctrl-f": "buffer_search::Deploy", |
|
}, |
|
}, |
|
{ |
|
"context": "KeymapEditor", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-f": "search::FocusSearch", |
|
"alt-f": "keymap_editor::ToggleKeystrokeSearch", |
|
"alt-c": "keymap_editor::ToggleConflictFilter", |
|
"enter": "keymap_editor::EditBinding", |
|
"alt-enter": "keymap_editor::CreateBinding", |
|
"ctrl-k": "keymap_editor::OpenCreateKeybindingModal", |
|
"ctrl-c": "keymap_editor::CopyAction", |
|
"ctrl-shift-c": "keymap_editor::CopyContext", |
|
"ctrl-t": "keymap_editor::ShowMatchingKeybinds", |
|
"ctrl-e": "zed::OpenKeymapFile", |
|
}, |
|
}, |
|
{ |
|
"context": "KeystrokeInput", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"enter": "keystroke_input::StartRecording", |
|
"escape escape escape": "keystroke_input::StopRecording", |
|
"delete": "keystroke_input::ClearKeystrokes", |
|
}, |
|
}, |
|
{ |
|
"context": "KeybindEditorModal", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-enter": "menu::Confirm", |
|
"escape": "menu::Cancel", |
|
}, |
|
}, |
|
{ |
|
"context": "KeybindEditorModal > Editor", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"up": "menu::SelectPrevious", |
|
"down": "menu::SelectNext", |
|
}, |
|
}, |
|
{ |
|
"context": "Onboarding", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-=": ["zed::IncreaseUiFontSize", { "persist": false }], |
|
"ctrl-+": ["zed::IncreaseUiFontSize", { "persist": false }], |
|
"ctrl--": ["zed::DecreaseUiFontSize", { "persist": false }], |
|
"ctrl-0": ["zed::ResetUiFontSize", { "persist": false }], |
|
"ctrl-enter": "onboarding::Finish", |
|
"alt-shift-l": "onboarding::SignIn", |
|
"shift-alt-a": "onboarding::OpenAccount", |
|
}, |
|
}, |
|
{ |
|
"context": "Welcome", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-n": "workspace::NewFile", |
|
"ctrl-=": ["zed::IncreaseUiFontSize", { "persist": false }], |
|
"ctrl-+": ["zed::IncreaseUiFontSize", { "persist": false }], |
|
"ctrl--": ["zed::DecreaseUiFontSize", { "persist": false }], |
|
"ctrl-0": ["zed::ResetUiFontSize", { "persist": false }], |
|
"ctrl-1": ["welcome::OpenRecentProject", 0], |
|
"ctrl-2": ["welcome::OpenRecentProject", 1], |
|
"ctrl-3": ["welcome::OpenRecentProject", 2], |
|
"ctrl-4": ["welcome::OpenRecentProject", 3], |
|
"ctrl-5": ["welcome::OpenRecentProject", 4], |
|
}, |
|
}, |
|
{ |
|
// Handled under a more specific context to avoid conflicts with the |
|
// `OpenCurrentFile` keybind from the settings UI |
|
"context": "!SettingsWindow", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-,": "zed::OpenSettings", |
|
}, |
|
}, |
|
{ |
|
"context": "SettingsWindow", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-w": "workspace::CloseWindow", |
|
"escape": "workspace::CloseWindow", |
|
"ctrl-m": "settings_editor::Minimize", |
|
"ctrl-f": "search::FocusSearch", |
|
"ctrl-,": "settings_editor::OpenCurrentFile", |
|
"left": "settings_editor::ToggleFocusNav", |
|
"ctrl-shift-e": "settings_editor::ToggleFocusNav", |
|
// todo(settings_ui): cut this down based on the max files and overflow UI |
|
// "ctrl-1": ["settings_editor::FocusFile", 0], |
|
// "ctrl-2": ["settings_editor::FocusFile", 1], |
|
// "ctrl-3": ["settings_editor::FocusFile", 2], |
|
// "ctrl-4": ["settings_editor::FocusFile", 3], |
|
// "ctrl-5": ["settings_editor::FocusFile", 4], |
|
// "ctrl-6": ["settings_editor::FocusFile", 5], |
|
// "ctrl-7": ["settings_editor::FocusFile", 6], |
|
// "ctrl-8": ["settings_editor::FocusFile", 7], |
|
// "ctrl-9": ["settings_editor::FocusFile", 8], |
|
// "ctrl-0": ["settings_editor::FocusFile", 9], |
|
"ctrl-pageup": "settings_editor::FocusPreviousFile", |
|
"ctrl-pagedown": "settings_editor::FocusNextFile", |
|
}, |
|
}, |
|
{ |
|
"context": "StashDiff > Editor", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-space": "git::ApplyCurrentStash", |
|
"ctrl-shift-space": "git::PopCurrentStash", |
|
"ctrl-shift-backspace": "git::DropCurrentStash", |
|
}, |
|
}, |
|
{ |
|
"context": "SettingsWindow > NavigationMenu", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"up": "settings_editor::FocusPreviousNavEntry", |
|
"shift-tab": "settings_editor::FocusPreviousNavEntry", |
|
"down": "settings_editor::FocusNextNavEntry", |
|
"tab": "settings_editor::FocusNextNavEntry", |
|
"right": "settings_editor::ExpandNavEntry", |
|
"left": "settings_editor::CollapseNavEntry", |
|
"pageup": "settings_editor::FocusPreviousRootNavEntry", |
|
"pagedown": "settings_editor::FocusNextRootNavEntry", |
|
"home": "settings_editor::FocusFirstNavEntry", |
|
"end": "settings_editor::FocusLastNavEntry", |
|
}, |
|
}, |
|
{ |
|
"context": "EditPredictionContext > Editor", |
|
"bindings": { |
|
"alt-left": "dev::EditPredictionContextGoBack", |
|
"alt-right": "dev::EditPredictionContextGoForward", |
|
}, |
|
}, |
|
{ |
|
"context": "GitBranchSelector || (GitBranchSelector > Picker > Editor)", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-shift-backspace": "branch_picker::DeleteBranch", |
|
"ctrl-alt-shift-backspace": "branch_picker::ForceDeleteBranch", |
|
"ctrl-shift-i": "branch_picker::FilterRemotes", |
|
}, |
|
}, |
|
{ |
|
"context": "ImageViewer", |
|
"bindings": { |
|
"ctrl-=": "image_viewer::ZoomIn", |
|
"ctrl-+": "image_viewer::ZoomIn", |
|
"ctrl--": "image_viewer::ZoomOut", |
|
"ctrl-0": "image_viewer::ResetZoom", |
|
"ctrl-1": "image_viewer::ZoomToActualSize", |
|
"ctrl-shift-0": "image_viewer::FitToView", |
|
}, |
|
}, |
|
{ |
|
"context": "RunModal", |
|
"bindings": { |
|
"alt-1": "new_process_modal::ActivateTaskTab", |
|
"alt-2": "new_process_modal::ActivateDebugTab", |
|
"alt-3": "new_process_modal::ActivateAttachTab", |
|
"alt-4": "new_process_modal::ActivateLaunchTab", |
|
}, |
|
}, |
|
{ |
|
"context": "GitPicker", |
|
"bindings": { |
|
"alt-1": "git_picker::ActivateBranchesTab", |
|
"alt-2": "git_picker::ActivateStashTab", |
|
}, |
|
}, |
|
{ |
|
"context": "WorktreePicker || (WorktreePicker > Picker > Editor)", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-shift-backspace": "worktree_picker::DeleteWorktree", |
|
"ctrl-alt-shift-backspace": "worktree_picker::ForceDeleteWorktree", |
|
}, |
|
}, |
|
{ |
|
"context": "NotebookEditor", |
|
"bindings": { |
|
"shift-enter": "notebook::RunAndAdvance", |
|
"ctrl-enter": "notebook::Run", |
|
"ctrl-shift-enter": "notebook::RunAll", |
|
"alt-up": "notebook::MoveCellUp", |
|
"alt-down": "notebook::MoveCellDown", |
|
"ctrl-m": "notebook::AddCodeBlock", |
|
"ctrl-shift-m": "notebook::AddMarkdownBlock", |
|
"ctrl-shift-r": "notebook::RestartKernel", |
|
"ctrl-c": "notebook::InterruptKernel", |
|
}, |
|
}, |
|
{ |
|
"context": "NotebookEditor && notebook_mode == command", |
|
"bindings": { |
|
"enter": "notebook::EnterEditMode", |
|
"down": "menu::SelectNext", |
|
"up": "menu::SelectPrevious", |
|
}, |
|
}, |
|
{ |
|
"context": "NotebookEditor > Editor", |
|
"bindings": { |
|
"enter": "editor::Newline", |
|
"shift-enter": "notebook::RunAndAdvance", |
|
"ctrl-enter": "notebook::Run", |
|
"ctrl-shift-enter": "notebook::RunAll", |
|
"alt-up": "notebook::MoveCellUp", |
|
"alt-down": "notebook::MoveCellDown", |
|
"ctrl-m": "notebook::AddCodeBlock", |
|
"ctrl-shift-m": "notebook::AddMarkdownBlock", |
|
"ctrl-shift-r": "notebook::RestartKernel", |
|
"ctrl-c": "notebook::InterruptKernel", |
|
"escape": "notebook::EnterCommandMode", |
|
}, |
|
}, |
|
{ |
|
"context": "GitGraph", |
|
"bindings": { |
|
"tab": "git_graph::FocusNextTabStop", |
|
"shift-tab": "git_graph::FocusPreviousTabStop", |
|
}, |
|
}, |
|
{ |
|
"context": "GitGraphSearchBar > Editor", |
|
"bindings": { |
|
"tab": "git_graph::FocusNextTabStop", |
|
"shift-tab": "git_graph::FocusPreviousTabStop", |
|
}, |
|
}, |
|
{ |
|
"context": "SkillCreator", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-w": "workspace::CloseWindow", |
|
"ctrl-enter": "skill_creator::SaveSkill", |
|
"tab": "skill_creator::FocusNextField", |
|
"shift-tab": "skill_creator::FocusPreviousField", |
|
}, |
|
}, |
|
{ |
|
"context": "SkillCreator > Editor", |
|
"use_key_equivalents": true, |
|
"bindings": { |
|
"ctrl-w": "workspace::CloseWindow", |
|
"ctrl-enter": "skill_creator::SaveSkill", |
|
"tab": "skill_creator::FocusNextField", |
|
"shift-tab": "skill_creator::FocusPreviousField", |
|
}, |
|
}, |
|
{ |
|
"context": "Pane", |
|
"bindings": { |
|
"ctrl-w": [ |
|
"pane::CloseActiveItem", |
|
{ |
|
"close_pinned": false, |
|
}, |
|
], |
|
}, |
|
}, |
|
{ |
|
"context": "Pane", |
|
"unbind": { |
|
"cmd-w": [ |
|
"pane::CloseActiveItem", |
|
{ |
|
"close_pinned": false, |
|
}, |
|
], |
|
}, |
|
}, |
|
{ |
|
"context": "Pane", |
|
"unbind": { |
|
"ctrl-2": ["pane::ActivateItem", 1], |
|
}, |
|
}, |
|
{ |
|
"context": "Pane", |
|
"unbind": { |
|
"ctrl-1": ["pane::ActivateItem", 0], |
|
}, |
|
}, |
|
{ |
|
"context": "Pane", |
|
"unbind": { |
|
"ctrl-3": ["pane::ActivateItem", 2], |
|
}, |
|
}, |
|
{ |
|
"context": "Pane", |
|
"unbind": { |
|
"ctrl-4": ["pane::ActivateItem", 3], |
|
}, |
|
}, |
|
{ |
|
"context": "Pane", |
|
"unbind": { |
|
"ctrl-5": ["pane::ActivateItem", 4], |
|
}, |
|
}, |
|
{ |
|
"context": "Pane", |
|
"unbind": { |
|
"ctrl-6": ["pane::ActivateItem", 5], |
|
}, |
|
}, |
|
{ |
|
"context": "Pane", |
|
"unbind": { |
|
"ctrl-7": ["pane::ActivateItem", 6], |
|
}, |
|
}, |
|
{ |
|
"context": "Pane", |
|
"unbind": { |
|
"ctrl-8": ["pane::ActivateItem", 7], |
|
}, |
|
}, |
|
{ |
|
"context": "Pane", |
|
"unbind": { |
|
"ctrl-9": ["pane::ActivateItem", 8], |
|
}, |
|
}, |
|
{ |
|
"context": "ProjectPanel", |
|
"unbind": { |
|
"cmd-n": "project_panel::NewFile", |
|
}, |
|
}, |
|
{ |
|
"context": "Workspace && !Terminal", |
|
"bindings": { |
|
"ctrl-n": "workspace::NewFile", |
|
}, |
|
}, |
|
{ |
|
"context": "Workspace && !Terminal", |
|
"unbind": { |
|
"cmd-n": "workspace::NewFile", |
|
}, |
|
}, |
|
{ |
|
"context": "Editor", |
|
"unbind": { |
|
"ctrl-pagedown": "editor::LineDown", |
|
}, |
|
}, |
|
{ |
|
"context": "Editor", |
|
"unbind": { |
|
"ctrl-pageup": "editor::LineUp", |
|
}, |
|
}, |
|
{ |
|
"context": "Editor", |
|
"unbind": { |
|
"ctrl-b": "editor::MoveLeft" |
|
} |
|
}, |
|
{ |
|
"context": "Editor", |
|
"unbind": { |
|
"ctrl-p": "editor::MoveUp" |
|
} |
|
} |
|
] |