Skip to content

Commit 034869f

Browse files
authored
Merge pull request #130 from codebling/update-default-keybindings-2024-09-06-01-13
Update for VSCode 1.93.0
2 parents 8b20372 + d0ac152 commit 034869f

6 files changed

+148
-36
lines changed

linux.keybindings.json

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Default Keybindings of Visual Studio Code 1.92.2 for Linux
1+
// Default Keybindings of Visual Studio Code 1.93.0 for Linux
22

33
[
44
{ "key": "escape escape", "command": "workbench.action.exitZenMode",
@@ -140,9 +140,9 @@
140140
{ "key": "enter", "command": "breakpointWidget.action.acceptInput",
141141
"when": "breakpointWidgetVisible && inBreakpointWidget" },
142142
{ "key": "ctrl+up", "command": "chat.action.focus",
143-
"when": "chatCursorAtTop && inChatInput && chatLocation == 'panel'" },
143+
"when": "chatCursorAtTop && inChatInput" },
144144
{ "key": "ctrl+up", "command": "chat.action.focus",
145-
"when": "inChatInput && isLinux && chatLocation == 'panel' || inChatInput && isWindows && chatLocation == 'panel'" },
145+
"when": "inChatInput && isLinux || inChatInput && isWindows" },
146146
{ "key": "shift+escape", "command": "closeBreakpointWidget",
147147
"when": "breakpointWidgetVisible && textInputFocus" },
148148
{ "key": "escape", "command": "closeBreakpointWidget",
@@ -493,6 +493,14 @@
493493
"when": "inDebugRepl && textInputFocus" },
494494
{ "key": "ctrl+f", "command": "repl.action.filter",
495495
"when": "inDebugRepl && textInputFocus" },
496+
{ "key": "ctrl+alt+f", "command": "repl.action.find",
497+
"when": "inDebugRepl || inDebugRepl && focusedView == 'workbench.panel.repl.view'" },
498+
{ "key": "ctrl+enter", "command": "repl.execute",
499+
"when": "activeEditor == 'workbench.editor.repl'" },
500+
{ "key": "shift+enter", "command": "repl.execute",
501+
"when": "config.interactiveWindow.executeWithShiftEnter && activeEditor == 'workbench.editor.repl'" },
502+
{ "key": "enter", "command": "repl.execute",
503+
"when": "!config.interactiveWindow.executeWithShiftEnter && activeEditor == 'workbench.editor.repl'" },
496504
{ "key": "ctrl+shift+r", "command": "rerunSearchEditorSearch",
497505
"when": "inSearchEditor" },
498506
{ "key": "escape", "command": "search.action.focusQueryEditorWidget",
@@ -513,7 +521,7 @@
513521
"when": "inWelcome && activeEditor == 'gettingStartedPage'" },
514522
{ "key": "ctrl+k ctrl+alt+c", "command": "workbench.action.addComment" },
515523
{ "key": "ctrl+/", "command": "workbench.action.chat.attachContext",
516-
"when": "config.chat.experimental.variables.editor && inChatInput && chatLocation == 'editor' || config.chat.experimental.variables.notebook && inChatInput && chatLocation == 'notebook' || config.chat.experimental.variables.terminal && inChatInput && chatLocation == 'terminal' || inChatInput && !quickChatHasFocus && chatLocation == 'panel'" },
524+
"when": "inChatInput && chatLocation == 'panel' || config.chat.experimental.variables.editor && inChatInput && chatLocation == 'editor' || config.chat.experimental.variables.notebook && inChatInput && chatLocation == 'notebook' || config.chat.experimental.variables.terminal && inChatInput && chatLocation == 'terminal'" },
517525
{ "key": "ctrl+alt+enter", "command": "workbench.action.chat.runInTerminal",
518526
"when": "accessibleViewInCodeBlock && chatIsEnabled || chatIsEnabled && inChat" },
519527
{ "key": "enter", "command": "workbench.action.chat.submit",
@@ -807,7 +815,7 @@
807815
{ "key": "ctrl+z", "command": "inlineChat.unstash",
808816
"when": "inlineChatHasStashedSession && !editorReadonly" },
809817
{ "key": "ctrl+down", "command": "inlineChat.viewInChat",
810-
"when": "inlineChatHasProvider && inlineChatVisible" },
818+
"when": "inChatInput && inlineChatHasProvider && inlineChatVisible" },
811819
{ "key": "down", "command": "interactive.history.next",
812820
"when": "!suggestWidgetVisible && activeEditor == 'workbench.editor.interactive' && interactiveInputCursorAtBoundary != 'none' && interactiveInputCursorAtBoundary != 'top'" },
813821
{ "key": "down", "command": "interactive.history.next",
@@ -896,6 +904,12 @@
896904
"when": "listFocus && !inputFocus && !treestickyScrollFocused" },
897905
{ "key": "ctrl+shift+enter", "command": "list.toggleSelection",
898906
"when": "listFocus && !inputFocus && !treestickyScrollFocused" },
907+
{ "key": "backspace", "command": "noteMultiCursor.deleteLeft",
908+
"when": "config.notebook.multiSelect.enabled && isNotebookMultiSelect && activeEditor == 'workbench.editor.notebook' && notebookMultiSelectState == '1' || config.notebook.multiSelect.enabled && isNotebookMultiSelect && activeEditor == 'workbench.editor.notebook' && notebookMultiSelectState == '2'" },
909+
{ "key": "escape", "command": "noteMultiCursor.exit",
910+
"when": "config.notebook.multiSelect.enabled && isNotebookMultiSelect && activeEditor == 'workbench.editor.notebook'" },
911+
{ "key": "ctrl+d", "command": "notebook.addFindMatchToSelection",
912+
"when": "config.notebook.multiSelect.enabled && notebookCellEditorFocused && activeEditor == 'workbench.editor.notebook'" },
899913
{ "key": "y", "command": "notebook.cell.changeToCode",
900914
"when": "notebookEditorFocused && !inputFocus && !notebookOutputFocused && activeEditor == 'workbench.editor.notebook' && notebookCellType == 'markup'" },
901915
{ "key": "m", "command": "notebook.cell.changeToMarkdown",
@@ -1606,6 +1620,10 @@
16061620
"when": "breadcrumbsActive && breadcrumbsVisible && listFocus && !inputFocus && !treestickyScrollFocused" },
16071621
{ "key": "escape", "command": "breadcrumbs.selectEditor",
16081622
"when": "breadcrumbsActive && breadcrumbsVisible" },
1623+
{ "key": "f3", "command": "list.find.replInputFocus",
1624+
"when": "view == 'workbench.panel.repl.view'" },
1625+
{ "key": "ctrl+alt+f", "command": "list.find.replInputFocus",
1626+
"when": "view == 'workbench.panel.repl.view'" },
16091627
{ "key": "down", "command": "notebook.cell.nullAction",
16101628
"when": "notebookOutputInputFocused" },
16111629
{ "key": "up", "command": "notebook.cell.nullAction",
@@ -1631,7 +1649,7 @@
16311649
{ "key": "tab", "command": "workbench.action.terminal.acceptSelectedSuggestion",
16321650
"when": "terminalFocus && terminalHasBeenCreated && terminalIsOpen && terminalSuggestWidgetVisible || terminalFocus && terminalIsOpen && terminalProcessSupported && terminalSuggestWidgetVisible" },
16331651
{ "key": "enter", "command": "workbench.action.terminal.acceptSelectedSuggestionEnter",
1634-
"when": "terminalFocus && terminalHasBeenCreated && terminalIsOpen && terminalSuggestWidgetVisible || terminalFocus && terminalIsOpen && terminalProcessSupported && terminalSuggestWidgetVisible" },
1652+
"when": "terminalFocus && terminalHasBeenCreated && terminalIsOpen && terminalSuggestWidgetVisible && config.terminal.integrated.suggest.runOnEnter != 'ignore' || terminalFocus && terminalIsOpen && terminalProcessSupported && terminalSuggestWidgetVisible && config.terminal.integrated.suggest.runOnEnter != 'ignore'" },
16351653
{ "key": "escape", "command": "workbench.action.terminal.hideSuggestWidget",
16361654
"when": "terminalFocus && terminalHasBeenCreated && terminalIsOpen && terminalSuggestWidgetVisible || terminalFocus && terminalIsOpen && terminalProcessSupported && terminalSuggestWidgetVisible" },
16371655
{ "key": "ctrl+shift+o", "command": "workbench.action.terminal.openDetectedLink",

linux.negative.keybindings.json

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Default Keybindings of Visual Studio Code 1.92.2 for Linux
1+
// Default Keybindings of Visual Studio Code 1.93.0 for Linux
22

33
[
44
{ "key": "escape escape", "command": "-workbench.action.exitZenMode",
@@ -140,9 +140,9 @@
140140
{ "key": "enter", "command": "-breakpointWidget.action.acceptInput",
141141
"when": "breakpointWidgetVisible && inBreakpointWidget" },
142142
{ "key": "ctrl+up", "command": "-chat.action.focus",
143-
"when": "chatCursorAtTop && inChatInput && chatLocation == 'panel'" },
143+
"when": "chatCursorAtTop && inChatInput" },
144144
{ "key": "ctrl+up", "command": "-chat.action.focus",
145-
"when": "inChatInput && isLinux && chatLocation == 'panel' || inChatInput && isWindows && chatLocation == 'panel'" },
145+
"when": "inChatInput && isLinux || inChatInput && isWindows" },
146146
{ "key": "shift+escape", "command": "-closeBreakpointWidget",
147147
"when": "breakpointWidgetVisible && textInputFocus" },
148148
{ "key": "escape", "command": "-closeBreakpointWidget",
@@ -493,6 +493,14 @@
493493
"when": "inDebugRepl && textInputFocus" },
494494
{ "key": "ctrl+f", "command": "-repl.action.filter",
495495
"when": "inDebugRepl && textInputFocus" },
496+
{ "key": "ctrl+alt+f", "command": "-repl.action.find",
497+
"when": "inDebugRepl || inDebugRepl && focusedView == 'workbench.panel.repl.view'" },
498+
{ "key": "ctrl+enter", "command": "-repl.execute",
499+
"when": "activeEditor == 'workbench.editor.repl'" },
500+
{ "key": "shift+enter", "command": "-repl.execute",
501+
"when": "config.interactiveWindow.executeWithShiftEnter && activeEditor == 'workbench.editor.repl'" },
502+
{ "key": "enter", "command": "-repl.execute",
503+
"when": "!config.interactiveWindow.executeWithShiftEnter && activeEditor == 'workbench.editor.repl'" },
496504
{ "key": "ctrl+shift+r", "command": "-rerunSearchEditorSearch",
497505
"when": "inSearchEditor" },
498506
{ "key": "escape", "command": "-search.action.focusQueryEditorWidget",
@@ -513,7 +521,7 @@
513521
"when": "inWelcome && activeEditor == 'gettingStartedPage'" },
514522
{ "key": "ctrl+k ctrl+alt+c", "command": "-workbench.action.addComment" },
515523
{ "key": "ctrl+/", "command": "-workbench.action.chat.attachContext",
516-
"when": "config.chat.experimental.variables.editor && inChatInput && chatLocation == 'editor' || config.chat.experimental.variables.notebook && inChatInput && chatLocation == 'notebook' || config.chat.experimental.variables.terminal && inChatInput && chatLocation == 'terminal' || inChatInput && !quickChatHasFocus && chatLocation == 'panel'" },
524+
"when": "inChatInput && chatLocation == 'panel' || config.chat.experimental.variables.editor && inChatInput && chatLocation == 'editor' || config.chat.experimental.variables.notebook && inChatInput && chatLocation == 'notebook' || config.chat.experimental.variables.terminal && inChatInput && chatLocation == 'terminal'" },
517525
{ "key": "ctrl+alt+enter", "command": "-workbench.action.chat.runInTerminal",
518526
"when": "accessibleViewInCodeBlock && chatIsEnabled || chatIsEnabled && inChat" },
519527
{ "key": "enter", "command": "-workbench.action.chat.submit",
@@ -807,7 +815,7 @@
807815
{ "key": "ctrl+z", "command": "-inlineChat.unstash",
808816
"when": "inlineChatHasStashedSession && !editorReadonly" },
809817
{ "key": "ctrl+down", "command": "-inlineChat.viewInChat",
810-
"when": "inlineChatHasProvider && inlineChatVisible" },
818+
"when": "inChatInput && inlineChatHasProvider && inlineChatVisible" },
811819
{ "key": "down", "command": "-interactive.history.next",
812820
"when": "!suggestWidgetVisible && activeEditor == 'workbench.editor.interactive' && interactiveInputCursorAtBoundary != 'none' && interactiveInputCursorAtBoundary != 'top'" },
813821
{ "key": "down", "command": "-interactive.history.next",
@@ -896,6 +904,12 @@
896904
"when": "listFocus && !inputFocus && !treestickyScrollFocused" },
897905
{ "key": "ctrl+shift+enter", "command": "-list.toggleSelection",
898906
"when": "listFocus && !inputFocus && !treestickyScrollFocused" },
907+
{ "key": "backspace", "command": "-noteMultiCursor.deleteLeft",
908+
"when": "config.notebook.multiSelect.enabled && isNotebookMultiSelect && activeEditor == 'workbench.editor.notebook' && notebookMultiSelectState == '1' || config.notebook.multiSelect.enabled && isNotebookMultiSelect && activeEditor == 'workbench.editor.notebook' && notebookMultiSelectState == '2'" },
909+
{ "key": "escape", "command": "-noteMultiCursor.exit",
910+
"when": "config.notebook.multiSelect.enabled && isNotebookMultiSelect && activeEditor == 'workbench.editor.notebook'" },
911+
{ "key": "ctrl+d", "command": "-notebook.addFindMatchToSelection",
912+
"when": "config.notebook.multiSelect.enabled && notebookCellEditorFocused && activeEditor == 'workbench.editor.notebook'" },
899913
{ "key": "y", "command": "-notebook.cell.changeToCode",
900914
"when": "notebookEditorFocused && !inputFocus && !notebookOutputFocused && activeEditor == 'workbench.editor.notebook' && notebookCellType == 'markup'" },
901915
{ "key": "m", "command": "-notebook.cell.changeToMarkdown",
@@ -1606,6 +1620,10 @@
16061620
"when": "breadcrumbsActive && breadcrumbsVisible && listFocus && !inputFocus && !treestickyScrollFocused" },
16071621
{ "key": "escape", "command": "-breadcrumbs.selectEditor",
16081622
"when": "breadcrumbsActive && breadcrumbsVisible" },
1623+
{ "key": "f3", "command": "-list.find.replInputFocus",
1624+
"when": "view == 'workbench.panel.repl.view'" },
1625+
{ "key": "ctrl+alt+f", "command": "-list.find.replInputFocus",
1626+
"when": "view == 'workbench.panel.repl.view'" },
16091627
{ "key": "down", "command": "-notebook.cell.nullAction",
16101628
"when": "notebookOutputInputFocused" },
16111629
{ "key": "up", "command": "-notebook.cell.nullAction",
@@ -1631,7 +1649,7 @@
16311649
{ "key": "tab", "command": "-workbench.action.terminal.acceptSelectedSuggestion",
16321650
"when": "terminalFocus && terminalHasBeenCreated && terminalIsOpen && terminalSuggestWidgetVisible || terminalFocus && terminalIsOpen && terminalProcessSupported && terminalSuggestWidgetVisible" },
16331651
{ "key": "enter", "command": "-workbench.action.terminal.acceptSelectedSuggestionEnter",
1634-
"when": "terminalFocus && terminalHasBeenCreated && terminalIsOpen && terminalSuggestWidgetVisible || terminalFocus && terminalIsOpen && terminalProcessSupported && terminalSuggestWidgetVisible" },
1652+
"when": "terminalFocus && terminalHasBeenCreated && terminalIsOpen && terminalSuggestWidgetVisible && config.terminal.integrated.suggest.runOnEnter != 'ignore' || terminalFocus && terminalIsOpen && terminalProcessSupported && terminalSuggestWidgetVisible && config.terminal.integrated.suggest.runOnEnter != 'ignore'" },
16351653
{ "key": "escape", "command": "-workbench.action.terminal.hideSuggestWidget",
16361654
"when": "terminalFocus && terminalHasBeenCreated && terminalIsOpen && terminalSuggestWidgetVisible || terminalFocus && terminalIsOpen && terminalProcessSupported && terminalSuggestWidgetVisible" },
16371655
{ "key": "ctrl+shift+o", "command": "-workbench.action.terminal.openDetectedLink",

0 commit comments

Comments
 (0)