mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
e243856559
Release Notes: - N/A --------- Co-authored-by: Antonio <antonio@zed.dev>
673 lines
21 KiB
JSON
673 lines
21 KiB
JSON
[
|
|
// Standard Linux bindings
|
|
{
|
|
"bindings": {
|
|
"up": "menu::SelectPrev",
|
|
"pageup": "menu::SelectFirst",
|
|
"shift-pageup": "menu::SelectFirst",
|
|
"ctrl-p": "menu::SelectPrev",
|
|
"down": "menu::SelectNext",
|
|
"pagedown": "menu::SelectLast",
|
|
"shift-pagedown": "menu::SelectFirst",
|
|
"ctrl-n": "menu::SelectNext",
|
|
"enter": "menu::Confirm",
|
|
"ctrl-enter": "menu::SecondaryConfirm",
|
|
"escape": "menu::Cancel",
|
|
"ctrl-escape": "menu::Cancel",
|
|
"ctrl-c": "menu::Cancel",
|
|
"shift-enter": "picker::UseSelectedQuery",
|
|
"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::Open",
|
|
"ctrl-=": "zed::IncreaseBufferFontSize",
|
|
"ctrl-+": "zed::IncreaseBufferFontSize",
|
|
"ctrl--": "zed::DecreaseBufferFontSize",
|
|
"ctrl-0": "zed::ResetBufferFontSize",
|
|
"ctrl-,": "zed::OpenSettings",
|
|
"ctrl-q": "zed::Quit",
|
|
"f11": "zed::ToggleFullScreen"
|
|
}
|
|
},
|
|
{
|
|
"context": "Editor",
|
|
"bindings": {
|
|
"escape": "editor::Cancel",
|
|
"backspace": "editor::Backspace",
|
|
"shift-backspace": "editor::Backspace",
|
|
"delete": "editor::Delete",
|
|
"ctrl-d": "editor::Delete",
|
|
"tab": "editor::Tab",
|
|
"shift-tab": "editor::TabPrev",
|
|
"ctrl-k": "editor::CutToEndOfLine",
|
|
"ctrl-t": "editor::Transpose",
|
|
"ctrl-backspace": "editor::DeleteToPreviousWordStart",
|
|
"ctrl-delete": "editor::DeleteToNextWordEnd",
|
|
"ctrl-x": "editor::Cut",
|
|
"ctrl-insert": "editor::Copy",
|
|
"ctrl-c": "editor::Copy",
|
|
"shift-insert": "editor::Paste",
|
|
"ctrl-v": "editor::Paste",
|
|
"ctrl-y": "editor::Redo",
|
|
"ctrl-z": "editor::Undo",
|
|
"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",
|
|
"down": "editor::MoveDown",
|
|
"pagedown": "editor::MovePageDown",
|
|
"alt-pagedown": "editor::PageDown",
|
|
"shift-pagedown": "editor::SelectPageDown",
|
|
"end": "editor::MoveToEndOfLine",
|
|
"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-up": "editor::AddSelectionAbove",
|
|
"ctrl-shift-down": "editor::AddSelectionBelow",
|
|
"ctrl-shift-home": "editor::SelectToBeginning",
|
|
"ctrl-shift-end": "editor::SelectToEnd",
|
|
"ctrl-a": "editor::SelectAll",
|
|
"ctrl-l": "editor::SelectLine",
|
|
"ctrl-shift-i": "editor::Format",
|
|
// "cmd-shift-left": [
|
|
// "editor::SelectToBeginningOfLine",
|
|
// {
|
|
// "stop_at_soft_wraps": true
|
|
// }
|
|
// ],
|
|
"shift-home": [
|
|
"editor::SelectToBeginningOfLine",
|
|
{
|
|
"stop_at_soft_wraps": true
|
|
}
|
|
],
|
|
// "ctrl-shift-a": [
|
|
// "editor::SelectToBeginningOfLine",
|
|
// {
|
|
// "stop_at_soft_wraps": true
|
|
// }
|
|
// ],
|
|
// "cmd-shift-right": [
|
|
// "editor::SelectToEndOfLine",
|
|
// {
|
|
// "stop_at_soft_wraps": true
|
|
// }
|
|
// ],
|
|
"shift-end": [
|
|
"editor::SelectToEndOfLine",
|
|
{
|
|
"stop_at_soft_wraps": true
|
|
}
|
|
],
|
|
// "ctrl-shift-e": [
|
|
// "editor::SelectToEndOfLine",
|
|
// {
|
|
// "stop_at_soft_wraps": true
|
|
// }
|
|
// ],
|
|
// "alt-v": [
|
|
// "editor::MovePageUp",
|
|
// {
|
|
// "center_cursor": true
|
|
// }
|
|
// ],
|
|
"ctrl-alt-space": "editor::ShowCharacterPalette",
|
|
"ctrl-;": "editor::ToggleLineNumbers",
|
|
"ctrl-k ctrl-r": "editor::RevertSelectedHunks",
|
|
"ctrl-'": "editor::ToggleHunkDiff",
|
|
"ctrl-\"": "editor::ExpandAllHunkDiffs",
|
|
"ctrl-alt-g b": "editor::ToggleGitBlame"
|
|
}
|
|
},
|
|
{
|
|
"context": "Editor && mode == full",
|
|
"bindings": {
|
|
"enter": "editor::Newline",
|
|
"shift-enter": "editor::Newline",
|
|
"ctrl-shift-enter": "editor::NewlineBelow",
|
|
"ctrl-enter": "editor::NewlineAbove",
|
|
"alt-z": "editor::ToggleSoftWrap",
|
|
"ctrl-f": "buffer_search::Deploy",
|
|
"ctrl-h": [
|
|
"buffer_search::Deploy",
|
|
{
|
|
"replace_enabled": true
|
|
}
|
|
],
|
|
// "cmd-e": [
|
|
// "buffer_search::Deploy",
|
|
// {
|
|
// "focus": false
|
|
// }
|
|
// ],
|
|
"ctrl->": "assistant::QuoteSelection",
|
|
"ctrl-alt-e": "editor::SelectEnclosingSymbol"
|
|
}
|
|
},
|
|
{
|
|
"context": "Editor && mode == full && inline_completion",
|
|
"bindings": {
|
|
"alt-]": "editor::NextInlineCompletion",
|
|
"alt-[": "editor::PreviousInlineCompletion",
|
|
"alt-right": "editor::AcceptPartialInlineCompletion"
|
|
}
|
|
},
|
|
{
|
|
"context": "Editor && !inline_completion",
|
|
"bindings": {
|
|
"alt-\\": "editor::ShowInlineCompletion"
|
|
}
|
|
},
|
|
{
|
|
"context": "Editor && mode == auto_height",
|
|
"bindings": {
|
|
"ctrl-enter": "editor::Newline",
|
|
"shift-enter": "editor::Newline",
|
|
"ctrl-shift-enter": "editor::NewlineBelow"
|
|
}
|
|
},
|
|
{
|
|
"context": "Markdown",
|
|
"bindings": {
|
|
"ctrl-c": "markdown::Copy"
|
|
}
|
|
},
|
|
{
|
|
"context": "AssistantPanel",
|
|
"bindings": {
|
|
"ctrl-g": "search::SelectNextMatch",
|
|
"ctrl-shift-g": "search::SelectPrevMatch",
|
|
"alt-m": "assistant::ToggleModelSelector"
|
|
}
|
|
},
|
|
{
|
|
"context": "PromptLibrary",
|
|
"bindings": {
|
|
"ctrl-n": "prompt_library::NewPrompt",
|
|
"ctrl-shift-s": "prompt_library::ToggleDefaultPrompt"
|
|
}
|
|
},
|
|
{
|
|
"context": "BufferSearchBar",
|
|
"bindings": {
|
|
"escape": "buffer_search::Dismiss",
|
|
"tab": "buffer_search::FocusEditor",
|
|
"enter": "search::SelectNextMatch",
|
|
"shift-enter": "search::SelectPrevMatch",
|
|
"alt-enter": "search::SelectAllMatches",
|
|
"ctrl-f": "search::FocusSearch",
|
|
"ctrl-h": "search::ToggleReplace",
|
|
"ctrl-l": "search::ToggleSelection"
|
|
}
|
|
},
|
|
{
|
|
"context": "BufferSearchBar && in_replace",
|
|
"bindings": {
|
|
"enter": "search::ReplaceNext",
|
|
"ctrl-enter": "search::ReplaceAll"
|
|
}
|
|
},
|
|
{
|
|
"context": "BufferSearchBar && !in_replace > Editor",
|
|
"bindings": {
|
|
"up": "search::PreviousHistoryQuery",
|
|
"down": "search::NextHistoryQuery"
|
|
}
|
|
},
|
|
{
|
|
"context": "ProjectSearchBar",
|
|
"bindings": {
|
|
"escape": "project_search::ToggleFocus",
|
|
"ctrl-shift-f": "search::FocusSearch",
|
|
"ctrl-shift-h": "search::ToggleReplace",
|
|
"alt-ctrl-g": "search::ToggleRegex",
|
|
"alt-ctrl-x": "search::ToggleRegex"
|
|
}
|
|
},
|
|
{
|
|
"context": "ProjectSearchBar > Editor",
|
|
"bindings": {
|
|
"up": "search::PreviousHistoryQuery",
|
|
"down": "search::NextHistoryQuery"
|
|
}
|
|
},
|
|
{
|
|
"context": "ProjectSearchBar && in_replace",
|
|
"bindings": {
|
|
"enter": "search::ReplaceNext",
|
|
"ctrl-alt-enter": "search::ReplaceAll"
|
|
}
|
|
},
|
|
{
|
|
"context": "ProjectSearchView",
|
|
"bindings": {
|
|
"escape": "project_search::ToggleFocus",
|
|
"ctrl-shift-h": "search::ToggleReplace",
|
|
"alt-ctrl-g": "search::ToggleRegex",
|
|
"alt-ctrl-x": "search::ToggleRegex"
|
|
}
|
|
},
|
|
{
|
|
"context": "Pane",
|
|
"bindings": {
|
|
"ctrl-pageup": "pane::ActivatePrevItem",
|
|
"ctrl-pagedown": "pane::ActivateNextItem",
|
|
"ctrl-w": "pane::CloseActiveItem",
|
|
"alt-ctrl-t": "pane::CloseInactiveItems",
|
|
"alt-ctrl-shift-w": "workspace::CloseInactiveTabsAndPanes",
|
|
"ctrl-k u": "pane::CloseCleanItems",
|
|
"ctrl-k w": "pane::CloseAllItems",
|
|
"ctrl-shift-f": "project_search::ToggleFocus",
|
|
"ctrl-alt-g": "search::SelectNextMatch",
|
|
"ctrl-alt-shift-g": "search::SelectPrevMatch",
|
|
"ctrl-alt-shift-h": "search::ToggleReplace",
|
|
"ctrl-alt-shift-l": "search::ToggleSelection",
|
|
"alt-enter": "search::SelectAllMatches",
|
|
"alt-c": "search::ToggleCaseSensitive",
|
|
"alt-w": "search::ToggleWholeWord",
|
|
"alt-r": "search::ToggleRegex",
|
|
"alt-ctrl-f": "project_search::ToggleFilters",
|
|
"ctrl-alt-shift-r": "search::ToggleRegex",
|
|
"ctrl-alt-shift-x": "search::ToggleRegex"
|
|
}
|
|
},
|
|
{
|
|
"context": "Terminal",
|
|
"bindings": {
|
|
"ctrl-w": ["terminal::SendKeystroke", "ctrl-w"],
|
|
"ctrl-e": ["terminal::SendKeystroke", "ctrl-e"]
|
|
}
|
|
},
|
|
// Bindings from VS Code
|
|
{
|
|
"context": "Editor",
|
|
"bindings": {
|
|
"ctrl-[": "editor::Outdent",
|
|
"ctrl-]": "editor::Indent",
|
|
"shift-alt-up": "editor::AddSelectionAbove",
|
|
"shift-alt-down": "editor::AddSelectionBelow",
|
|
"ctrl-shift-k": "editor::DeleteLine",
|
|
"alt-up": "editor::MoveLineUp",
|
|
"alt-down": "editor::MoveLineDown",
|
|
"ctrl-alt-shift-up": "editor::DuplicateLineUp",
|
|
"ctrl-alt-shift-down": "editor::DuplicateLineDown",
|
|
"ctrl-shift-left": "editor::SelectToPreviousWordStart",
|
|
"ctrl-shift-right": "editor::SelectToNextWordEnd",
|
|
"ctrl-shift-up": "editor::SelectLargerSyntaxNode", //todo(linux) tmp keybinding
|
|
"ctrl-shift-down": "editor::SelectSmallerSyntaxNode", //todo(linux) tmp keybinding
|
|
"ctrl-d": [
|
|
"editor::SelectNext",
|
|
{
|
|
"replace_newest": false
|
|
}
|
|
],
|
|
"ctrl-shift-l": "editor::SelectAllMatches",
|
|
"ctrl-shift-d": [
|
|
"editor::SelectPrevious",
|
|
{
|
|
"replace_newest": false
|
|
}
|
|
],
|
|
"ctrl-k ctrl-d": [
|
|
"editor::SelectNext",
|
|
{
|
|
"replace_newest": true
|
|
}
|
|
],
|
|
"ctrl-k ctrl-shift-d": [
|
|
"editor::SelectPrevious",
|
|
{
|
|
"replace_newest": true
|
|
}
|
|
],
|
|
"ctrl-k ctrl-i": "editor::Hover",
|
|
"ctrl-/": [
|
|
"editor::ToggleComments",
|
|
{
|
|
"advance_downwards": false
|
|
}
|
|
],
|
|
"ctrl-u": "editor::UndoSelection",
|
|
"ctrl-shift-u": "editor::RedoSelection",
|
|
"f8": "editor::GoToDiagnostic",
|
|
"shift-f8": "editor::GoToPrevDiagnostic",
|
|
"f2": "editor::Rename",
|
|
"f12": "editor::GoToDefinition",
|
|
"alt-f12": "editor::GoToDefinitionSplit",
|
|
"ctrl-f12": "editor::GoToTypeDefinition",
|
|
"shift-f12": "editor::GoToImplementation",
|
|
"alt-ctrl-f12": "editor::GoToTypeDefinitionSplit",
|
|
"alt-shift-f12": "editor::FindAllReferences",
|
|
"ctrl-m": "editor::MoveToEnclosingBracket",
|
|
"ctrl-shift-[": "editor::Fold",
|
|
"ctrl-shift-]": "editor::UnfoldLines",
|
|
"ctrl-space": "editor::ShowCompletions",
|
|
"ctrl-.": "editor::ToggleCodeActions",
|
|
"alt-ctrl-r": "editor::RevealInFinder",
|
|
"ctrl-alt-shift-c": "editor::DisplayCursorNames"
|
|
}
|
|
},
|
|
{
|
|
"context": "Editor && mode == full",
|
|
"bindings": {
|
|
"ctrl-shift-o": "outline::Toggle",
|
|
"ctrl-g": "go_to_line::Toggle"
|
|
}
|
|
},
|
|
{
|
|
"context": "Pane",
|
|
"bindings": {
|
|
"alt-1": ["pane::ActivateItem", 0],
|
|
"alt-2": ["pane::ActivateItem", 1],
|
|
"alt-3": ["pane::ActivateItem", 2],
|
|
"alt-4": ["pane::ActivateItem", 3],
|
|
"alt-5": ["pane::ActivateItem", 4],
|
|
"alt-6": ["pane::ActivateItem", 5],
|
|
"alt-7": ["pane::ActivateItem", 6],
|
|
"alt-8": ["pane::ActivateItem", 7],
|
|
"alt-9": ["pane::ActivateItem", 8],
|
|
"alt-0": "pane::ActivateLastItem",
|
|
"ctrl-alt--": "pane::GoBack",
|
|
"ctrl-alt-_": "pane::GoForward",
|
|
"ctrl-shift-t": "pane::ReopenClosedItem",
|
|
"ctrl-shift-f": "project_search::ToggleFocus"
|
|
}
|
|
},
|
|
{
|
|
"context": "Workspace",
|
|
"bindings": {
|
|
// Change the default action on `menu::Confirm` by setting the parameter
|
|
// "alt-cmd-o": [
|
|
// "projects::OpenRecent",
|
|
// {
|
|
// "create_new_window": true
|
|
// }
|
|
// ]
|
|
"alt-ctrl-o": "projects::OpenRecent",
|
|
"alt-ctrl-shift-b": "branches::OpenRecent",
|
|
"ctrl-~": "workspace::NewTerminal",
|
|
"ctrl-s": "workspace::Save",
|
|
"ctrl-k s": "workspace::SaveWithoutFormat",
|
|
"ctrl-shift-s": "workspace::SaveAs",
|
|
"ctrl-n": "workspace::NewFile",
|
|
"ctrl-shift-n": "workspace::NewWindow",
|
|
"ctrl-`": "terminal_panel::ToggleFocus",
|
|
"alt-1": ["workspace::ActivatePane", 0],
|
|
"alt-2": ["workspace::ActivatePane", 1],
|
|
"alt-3": ["workspace::ActivatePane", 2],
|
|
"alt-4": ["workspace::ActivatePane", 3],
|
|
"alt-5": ["workspace::ActivatePane", 4],
|
|
"alt-6": ["workspace::ActivatePane", 5],
|
|
"alt-7": ["workspace::ActivatePane", 6],
|
|
"alt-8": ["workspace::ActivatePane", 7],
|
|
"alt-9": ["workspace::ActivatePane", 8],
|
|
"ctrl-alt-b": "workspace::ToggleLeftDock",
|
|
"ctrl-b": "workspace::ToggleLeftDock",
|
|
"ctrl-j": "workspace::ToggleBottomDock",
|
|
"ctrl-alt-y": "workspace::CloseAllDocks",
|
|
"ctrl-shift-f": "pane::DeploySearch",
|
|
"ctrl-shift-h": [
|
|
"pane::DeploySearch",
|
|
{
|
|
"replace_enabled": true
|
|
}
|
|
],
|
|
"ctrl-k ctrl-s": "zed::OpenKeymap",
|
|
"ctrl-k ctrl-t": "theme_selector::Toggle",
|
|
"ctrl-shift-t": "project_symbols::Toggle",
|
|
"ctrl-p": "file_finder::Toggle",
|
|
"ctrl-tab": "tab_switcher::Toggle",
|
|
"ctrl-shift-tab": ["tab_switcher::Toggle", { "select_last": true }],
|
|
"ctrl-e": "file_finder::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-?": "assistant::ToggleFocus",
|
|
"ctrl-alt-s": "workspace::SaveAll",
|
|
"ctrl-k m": "language_selector::Toggle",
|
|
"escape": "workspace::Unfollow",
|
|
"ctrl-k ctrl-left": ["workspace::ActivatePaneInDirection", "Left"],
|
|
"ctrl-k ctrl-right": ["workspace::ActivatePaneInDirection", "Right"],
|
|
"ctrl-k ctrl-up": ["workspace::ActivatePaneInDirection", "Up"],
|
|
"ctrl-k ctrl-down": ["workspace::ActivatePaneInDirection", "Down"],
|
|
"ctrl-k shift-left": ["workspace::SwapPaneInDirection", "Left"],
|
|
"ctrl-k shift-right": ["workspace::SwapPaneInDirection", "Right"],
|
|
"ctrl-k shift-up": ["workspace::SwapPaneInDirection", "Up"],
|
|
"ctrl-k shift-down": ["workspace::SwapPaneInDirection", "Down"],
|
|
"alt-t": "task::Rerun",
|
|
"alt-shift-t": "task::Spawn"
|
|
}
|
|
},
|
|
// Bindings from Sublime Text
|
|
{
|
|
"context": "Editor",
|
|
"bindings": {
|
|
"ctrl-shift-k": "editor::DeleteLine",
|
|
"ctrl-shift-d": "editor::DuplicateLineDown",
|
|
"ctrl-j": "editor::JoinLines",
|
|
"ctrl-alt-backspace": "editor::DeleteToPreviousSubwordStart",
|
|
"ctrl-alt-h": "editor::DeleteToPreviousSubwordStart",
|
|
"ctrl-alt-delete": "editor::DeleteToNextSubwordEnd",
|
|
"ctrl-alt-d": "editor::DeleteToNextSubwordEnd",
|
|
"ctrl-alt-left": "editor::MoveToPreviousSubwordStart",
|
|
"ctrl-alt-b": "editor::MoveToPreviousSubwordStart",
|
|
"ctrl-alt-right": "editor::MoveToNextSubwordEnd",
|
|
"ctrl-alt-f": "editor::MoveToNextSubwordEnd",
|
|
"ctrl-alt-shift-left": "editor::SelectToPreviousSubwordStart",
|
|
"ctrl-alt-shift-b": "editor::SelectToPreviousSubwordStart",
|
|
"ctrl-alt-shift-right": "editor::SelectToNextSubwordEnd",
|
|
"ctrl-alt-shift-f": "editor::SelectToNextSubwordEnd"
|
|
}
|
|
},
|
|
// Bindings from Atom
|
|
{
|
|
"context": "Pane",
|
|
"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",
|
|
"bindings": {
|
|
"enter": "editor::ConfirmRename"
|
|
}
|
|
},
|
|
{
|
|
"context": "Editor && showing_completions",
|
|
"bindings": {
|
|
"enter": "editor::ConfirmCompletion",
|
|
"tab": "editor::ConfirmCompletion"
|
|
}
|
|
},
|
|
{
|
|
"context": "Editor && inline_completion && !showing_completions",
|
|
"bindings": {
|
|
"tab": "editor::AcceptInlineCompletion"
|
|
}
|
|
},
|
|
{
|
|
"context": "Editor && showing_code_actions",
|
|
"bindings": {
|
|
"enter": "editor::ConfirmCodeAction"
|
|
}
|
|
},
|
|
{
|
|
"context": "Editor && (showing_code_actions || showing_completions)",
|
|
"bindings": {
|
|
"up": "editor::ContextMenuPrev",
|
|
"ctrl-p": "editor::ContextMenuPrev",
|
|
"down": "editor::ContextMenuNext",
|
|
"ctrl-n": "editor::ContextMenuNext",
|
|
"pageup": "editor::ContextMenuFirst",
|
|
"pagedown": "editor::ContextMenuLast"
|
|
}
|
|
},
|
|
// Custom bindings
|
|
{
|
|
"bindings": {
|
|
"ctrl-alt-shift-f": "workspace::FollowNextCollaborator",
|
|
// TODO: Move this to a dock open action
|
|
"ctrl-shift-c": "collab_panel::ToggleFocus",
|
|
"ctrl-alt-i": "zed::DebugElements",
|
|
"ctrl-:": "editor::ToggleInlayHints"
|
|
}
|
|
},
|
|
{
|
|
"context": "Editor && mode == full",
|
|
"bindings": {
|
|
"alt-enter": "editor::OpenExcerpts",
|
|
"shift-enter": "editor::ExpandExcerpts",
|
|
"ctrl-k enter": "editor::OpenExcerptsSplit",
|
|
"ctrl-f8": "editor::GoToHunk",
|
|
"ctrl-shift-f8": "editor::GoToPrevHunk",
|
|
"ctrl-enter": "assistant::InlineAssist"
|
|
}
|
|
},
|
|
{
|
|
"context": "ContextEditor > Editor",
|
|
"bindings": {
|
|
"ctrl-enter": "assistant::Assist",
|
|
"ctrl-s": "workspace::Save",
|
|
"ctrl->": "assistant::QuoteSelection",
|
|
"shift-enter": "assistant::Split",
|
|
"ctrl-r": "assistant::CycleMessageRole",
|
|
"enter": "assistant::ConfirmCommand",
|
|
"alt-enter": "editor::Newline"
|
|
}
|
|
},
|
|
{
|
|
"context": "ProjectSearchBar && !in_replace",
|
|
"bindings": {
|
|
"ctrl-enter": "project_search::SearchInNew"
|
|
}
|
|
},
|
|
{
|
|
"context": "OutlinePanel",
|
|
"bindings": {
|
|
"left": "outline_panel::CollapseSelectedEntry",
|
|
"right": "outline_panel::ExpandSelectedEntry",
|
|
"ctrl-alt-c": "outline_panel::CopyPath",
|
|
"alt-ctrl-shift-c": "outline_panel::CopyRelativePath",
|
|
"alt-ctrl-r": "outline_panel::RevealInFinder",
|
|
"space": "outline_panel::Open",
|
|
"shift-down": "menu::SelectNext",
|
|
"shift-up": "menu::SelectPrev"
|
|
}
|
|
},
|
|
{
|
|
"context": "ProjectPanel",
|
|
"bindings": {
|
|
"left": "project_panel::CollapseSelectedEntry",
|
|
"right": "project_panel::ExpandSelectedEntry",
|
|
"ctrl-n": "project_panel::NewFile",
|
|
"alt-ctrl-n": "project_panel::NewDirectory",
|
|
"ctrl-x": "project_panel::Cut",
|
|
"ctrl-c": "project_panel::Copy",
|
|
"ctrl-insert": "project_panel::Copy",
|
|
"ctrl-v": "project_panel::Paste",
|
|
"shift-insert": "project_panel::Paste",
|
|
"ctrl-alt-c": "project_panel::CopyPath",
|
|
"alt-ctrl-shift-c": "project_panel::CopyRelativePath",
|
|
"f2": "project_panel::Rename",
|
|
"enter": "project_panel::Rename",
|
|
"backspace": ["project_panel::Trash", { "skip_prompt": false }],
|
|
"shift-delete": ["project_panel::Delete", { "skip_prompt": false }],
|
|
"delete": ["project_panel::Trash", { "skip_prompt": false }],
|
|
"ctrl-backspace": ["project_panel::Delete", { "skip_prompt": false }],
|
|
"ctrl-delete": ["project_panel::Delete", { "skip_prompt": false }],
|
|
"alt-ctrl-r": "project_panel::RevealInFinder",
|
|
"alt-shift-f": "project_panel::NewSearchInDirectory",
|
|
"shift-down": "menu::SelectNext",
|
|
"shift-up": "menu::SelectPrev",
|
|
"escape": "menu::Cancel"
|
|
}
|
|
},
|
|
{
|
|
"context": "ProjectPanel && not_editing",
|
|
"bindings": {
|
|
"space": "project_panel::Open"
|
|
}
|
|
},
|
|
{
|
|
"context": "CollabPanel && not_editing",
|
|
"bindings": {
|
|
"ctrl-backspace": "collab_panel::Remove",
|
|
"space": "menu::Confirm"
|
|
}
|
|
},
|
|
{
|
|
"context": "(CollabPanel && editing) > Editor",
|
|
"bindings": {
|
|
"space": "collab_panel::InsertSpace"
|
|
}
|
|
},
|
|
{
|
|
"context": "ChannelModal",
|
|
"bindings": {
|
|
"tab": "channel_modal::ToggleMode"
|
|
}
|
|
},
|
|
{
|
|
"context": "ChannelModal > Picker > Editor",
|
|
"bindings": {
|
|
"tab": "channel_modal::ToggleMode"
|
|
}
|
|
},
|
|
{
|
|
"context": "FileFinder",
|
|
"bindings": { "ctrl-shift-p": "file_finder::SelectPrev" }
|
|
},
|
|
{
|
|
"context": "TabSwitcher",
|
|
"bindings": {
|
|
"ctrl-up": "menu::SelectPrev",
|
|
"ctrl-down": "menu::SelectNext",
|
|
"ctrl-shift-tab": "menu::SelectPrev",
|
|
"ctrl-backspace": "tab_switcher::CloseSelectedItem"
|
|
}
|
|
},
|
|
{
|
|
"context": "Terminal",
|
|
"bindings": {
|
|
"ctrl-alt-space": "terminal::ShowCharacterPalette",
|
|
"shift-ctrl-c": "terminal::Copy",
|
|
"ctrl-insert": "terminal::Copy",
|
|
"shift-ctrl-v": "terminal::Paste",
|
|
"shift-insert": "terminal::Paste",
|
|
"ctrl-enter": "assistant::InlineAssist",
|
|
"up": ["terminal::SendKeystroke", "up"],
|
|
"pageup": ["terminal::SendKeystroke", "pageup"],
|
|
"down": ["terminal::SendKeystroke", "down"],
|
|
"pagedown": ["terminal::SendKeystroke", "pagedown"],
|
|
"escape": ["terminal::SendKeystroke", "escape"],
|
|
"enter": ["terminal::SendKeystroke", "enter"],
|
|
"ctrl-c": ["terminal::SendKeystroke", "ctrl-c"],
|
|
"shift-pageup": "terminal::ScrollPageUp",
|
|
"shift-pagedown": "terminal::ScrollPageDown",
|
|
"shift-up": "terminal::ScrollLineUp",
|
|
"shift-down": "terminal::ScrollLineDown",
|
|
"shift-home": "terminal::ScrollToTop",
|
|
"shift-end": "terminal::ScrollToBottom"
|
|
}
|
|
}
|
|
]
|