Last active
June 24, 2024 14:48
-
-
Save RyushiAok/744fa2368e22e974390dd59ff9494acf to your computer and use it in GitHub Desktop.
vscode keybindings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 既定値を上書きするには、このファイル内にキー バインドを挿入します | |
[ | |
{ | |
"key": "ctrl+alt+n", | |
"command": "explorer.newFolder" | |
}, | |
{ | |
"key": "ctrl+shift+n", | |
"command": "explorer.newFile" | |
}, | |
{ | |
"key": "ctrl+shift+t", | |
"command": "-workbench.action.reopenClosedEditor" | |
}, | |
{ | |
"key": "ctrl+shift+t", | |
"command": "workbench.action.tasks.test" | |
}, | |
// { | |
// "key": "ctrl+w", | |
// "command": "-vscode-neovim.send-cmdline", | |
// "when": "neovim.init && neovim.mode == 'cmdline'" | |
// }, | |
// { | |
// "key": "ctrl+w", | |
// "command": "-vscode-neovim.send", | |
// "when": "editorTextFocus && neovim.ctrlKeysNormal.w && neovim.init && neovim.mode != 'insert' && editorLangId not in 'neovim.editorLangIdExclusions'" | |
// }, | |
// { | |
// "key": "ctrl+w", | |
// "command": "-vscode-neovim.send", | |
// "when": "editorTextFocus && neovim.ctrlKeysInsert.w && neovim.init && neovim.mode == 'insert' && editorLangId not in 'neovim.editorLangIdExclusions'" | |
// }, | |
{ | |
"key": "ctrl+c", | |
"command": "-vscode-neovim.escape", | |
"when": "editorTextFocus && neovim.ctrlKeysNormal.c && neovim.init && !dirtyDiffVisible && !findWidgetVisible && !inReferenceSearchEditor && !markersNavigationVisible && !notebookCellFocused && !notificationCenterVisible && !parameterHintsVisible && !referenceSearchVisible && neovim.mode == 'normal' && editorLangId not in 'neovim.editorLangIdExclusions'" | |
}, | |
{ | |
"key": "ctrl+c", | |
"command": "-vscode-neovim.escape", | |
"when": "editorTextFocus && neovim.ctrlKeysInsert.c && neovim.init && neovim.mode != 'normal' && editorLangId not in 'neovim.editorLangIdExclusions'" | |
}, | |
{ | |
"key": "ctrl+a", | |
"command": "-vscode-neovim.send", | |
"when": "editorTextFocus && neovim.ctrlKeysNormal.a && neovim.init && neovim.mode != 'insert' && editorLangId not in 'neovim.editorLangIdExclusions'" | |
}, | |
{ | |
"key": "ctrl+a", | |
"command": "-vscode-neovim.send", | |
"when": "editorTextFocus && neovim.ctrlKeysInsert.a && neovim.init && neovim.mode == 'insert' && editorLangId not in 'neovim.editorLangIdExclusions'" | |
}, | |
// neovim | |
{ | |
"key": "space s", | |
"command": "workbench.action.files.save", | |
"when": "neovim.mode == normal && editorTextFocus" | |
}, | |
{ | |
"key": "space r", | |
"command": "editor.action.rename", | |
"when": "neovim.mode == normal && editorHasRenameProvider && editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "space /", | |
"command": "editor.action.commentLine", | |
"when": "neovim.mode == normal && editorTextFocus" | |
}, | |
{ | |
"key": "space w", | |
"command": "workbench.action.closeActiveEditor", | |
"when": "neovim.mode == normal && editorTextFocus" | |
}, | |
{ | |
"key": "space s g", | |
"command": "workbench.view.search", | |
"when": "neovim.mode == normal && editorTextFocus" | |
}, | |
{ | |
"key": "space s f", | |
"command": "workbench.action.quickOpen", | |
"when": "neovim.mode == normal && editorTextFocus" | |
}, | |
{ | |
"key": "space l g", | |
"command": "workbench.view.scm", | |
"when": "neovim.mode == normal && workbench.scm.active && editorTextFocus" | |
}, | |
{ | |
"key": "g d", | |
"command": "editor.action.revealDefinition", | |
"when": "neovim.mode == normal && editorHasDefinitionProvider && editorTextFocus" | |
}, | |
{ | |
"key": "space h d", | |
"command": "prStatus:github.focus", | |
"when": "neovim.mode == normal && workbench.scm.active && editorTextFocus" | |
}, | |
{ | |
"key": "ctrl+g p", | |
"command": "prStatus:github.focus" | |
}, | |
{ | |
"key": "ctrl+w", | |
"command": "-workbench.action.closeActiveEditor" | |
}, | |
{ | |
"key": "ctrl+g", | |
"command": "-workbench.action.gotoLine" | |
}, | |
{ | |
"key": "ctrl+g", | |
"command": "-vscode-neovim.send", | |
"when": "editorTextFocus && neovim.ctrlKeysNormal.g && neovim.init && neovim.mode != 'insert' && editorLangId not in 'neovim.editorLangIdExclusions'" | |
}, | |
{ | |
"key": "ctrl+g", | |
"command": "-vscode-neovim.send", | |
"when": "editorTextFocus && neovim.ctrlKeysInsert.g && neovim.init && neovim.mode == 'insert' && editorLangId not in 'neovim.editorLangIdExclusions'" | |
}, | |
{ | |
"key": "ctrl+g", | |
"command": "-vscode-neovim.send-cmdline", | |
"when": "neovim.init && neovim.mode == 'cmdline'" | |
}, | |
{ | |
"key": "ctrl+shift+g", | |
"command": "-workbench.view.scm", | |
"when": "workbench.scm.active" | |
}, | |
{ | |
"key": "ctrl+g d", | |
"command": "workbench.scm.focus" | |
} | |
] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment