更新 'keybindings.json'

This commit is contained in:
colin 2022-01-21 23:31:00 +08:00
parent 4afc1531c6
commit 72dfd03fb2
1 changed files with 49 additions and 26 deletions

View File

@ -26,11 +26,11 @@
"command": "workbench.action.closeWindow", "command": "workbench.action.closeWindow",
"when": "!multipleEditorGroups && !inDebugMode" "when": "!multipleEditorGroups && !inDebugMode"
}, },
{ // {
"key": "cmd+w", // "key": "cmd+w",
"command": "workbench.action.closeWindow", // "command": "workbench.action.closeWindow",
"when": "!editorIsOpen && !multipleEditorGroups" // "when": "!editorIsOpen && !terminalFocus && !multipleEditorGroups"
}, // },
{ {
"key": "cmd+c", "key": "cmd+c",
"command": "editor.action.clipboardCopyAction", "command": "editor.action.clipboardCopyAction",
@ -41,16 +41,6 @@
"command": "editor.action.clipboardCutAction", "command": "editor.action.clipboardCutAction",
"when": "textInputFocus && !editorReadonly" "when": "textInputFocus && !editorReadonly"
}, },
{
"key": "cmd+f",
"command": "actions.find",
"when": "!findInputFocussed"
},
{
"key": "cmd+f",
"command": "editor.action.nextMatchFindAction",
"when": "findInputFocussed"
},
{ {
"key": "cmd+n", "key": "cmd+n",
"command": "editor.action.nextMatchFindAction", "command": "editor.action.nextMatchFindAction",
@ -180,14 +170,24 @@
}, },
{ {
"key": "cmd+t", "key": "cmd+t",
"command": "workbench.action.terminal.newInActiveWorkspace", "command": "workbench.action.terminal.new",
"when": "terminalFocus || terminalFindFocused" "when": "activePanel"
},
{
"key": "cmd+t",
"command": "workbench.action.createTerminalEditor",
"when": "!activePanel"
}, },
{ {
"key": "cmd+w", "key": "cmd+w",
"command": "workbench.action.terminal.kill", "command": "workbench.action.terminal.kill",
"when": "terminalFocus || terminalFindFocused" "when": "terminalFocus || terminalFindFocused"
}, },
{
"key": "cmd+w",
"command": "workbench.action.terminal.killEditor",
"when": "terminalEditorFocus || terminalFindFocused"
},
{ {
"key": "cmd+shift+]", "key": "cmd+shift+]",
"command": "workbench.action.terminal.focusNext", "command": "workbench.action.terminal.focusNext",
@ -319,22 +319,37 @@
{ {
"key": "cmd+f", "key": "cmd+f",
"command": "workbench.action.terminal.focusFind", "command": "workbench.action.terminal.focusFind",
"when": "terminalFocus && !terminalFindFocused" "when": "!terminalFindFocused && terminalEditorFocus"
},
{
"key": "cmd+f",
"command": "workbench.action.terminal.focusFind",
"when": "!terminalFindFocused && terminalFocus"
}, },
{ {
"key": "cmd+f", "key": "cmd+f",
"command": "workbench.action.terminal.findNext", "command": "workbench.action.terminal.findNext",
"when": "terminalFindFocused" "when": "terminalFindFocused"
}, },
{
"key": "cmd+f",
"command": "actions.find",
"when": "!findInputFocussed && !terminalFocus && !terminalFindFocused && !terminalEditorFocus"
},
{
"key": "cmd+f",
"command": "editor.action.nextMatchFindAction",
"when": "findInputFocussed && !terminalFocus && !terminalFindFocused && !terminalEditorFocus"
},
{ {
"key": "cmd+shift+]", "key": "cmd+shift+]",
"command": "workbench.action.nextEditor", "command": "workbench.action.nextEditor",
"when": "!terminalFocus" "when": "!terminalFocus || terminalEditorFocus"
}, },
{ {
"key": "cmd+shift+[", "key": "cmd+shift+[",
"command": "workbench.action.previousEditor", "command": "workbench.action.previousEditor",
"when": "!terminalFocus" "when": "!terminalFocus || terminalEditorFocus"
}, },
{ {
"key": "cmd+1", "key": "cmd+1",
@ -408,17 +423,11 @@
{ {
"key": "shift+cmd+;", "key": "shift+cmd+;",
"command": "editor.action.formatDocument", "command": "editor.action.formatDocument",
// "when": "editorHasDocumentFormattingProvider && editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly && !inCompositeEditor"
}, },
{ {
"key": "cmd+o", "key": "cmd+o",
"command": "workbench.action.openRecent" "command": "workbench.action.openRecent"
}, },
{
"key": "cmd+t",
"command": "workbench.action.newWindow",
"when": "!inDebugMode && !terminalFocus && !terminalFindFocused"
},
{ {
"key": "shift+cmd+v", "key": "shift+cmd+v",
"command": "open-in-vim.open" "command": "open-in-vim.open"
@ -427,4 +436,18 @@
"key": "ctrl+cmd+w", "key": "ctrl+cmd+w",
"command": "-workbench.action.toggleTabsVisibility" "command": "-workbench.action.toggleTabsVisibility"
}, },
{
"key": "ctrl+shift+`",
"command": "-workbench.action.terminal.new",
"when": "terminalProcessSupported || terminalWebExtensionContributedProfile"
},
{
"key": "cmd+t",
"command": "-workbench.action.showAllSymbols"
},
{
"key": "escape",
"command": "closeFindWidget",
"when": "findWidgetVisible"
},
] ]