chore(cursor): update keybindings and settings

This commit is contained in:
Jim Myhrberg
2025-02-10 18:57:33 +00:00
parent 0cb2d3ab27
commit b6ac9ce2ac
2 changed files with 104 additions and 52 deletions

View File

@@ -26,7 +26,7 @@
"command": "workbench.action.files.save" "command": "workbench.action.files.save"
}, },
// //
// File Open // File open
// //
{ {
"key": "ctrl+x ctrl+f", "key": "ctrl+x ctrl+f",
@@ -38,6 +38,26 @@
"command": "workbench.action.quickOpen" "command": "workbench.action.quickOpen"
}, },
// //
// File rename
//
{
"key": "ctrl+c r",
"command": "file-browser.rename"
},
//
// Switch and close editor
//
{
"key": "ctrl+x ctrl+b",
"command": "workbench.action.showAllEditorsByMostRecentlyUsed",
"when": "!terminalFocus"
},
{
"key": "ctrl+x ctrl+k",
"command": "workbench.action.closeActiveEditor",
"when": "!terminalFocus"
},
//
// Fullscreen // Fullscreen
// //
{ {
@@ -68,30 +88,70 @@
"command": "workbench.action.focusPreviousGroup", "command": "workbench.action.focusPreviousGroup",
"when": "!terminalFocus" "when": "!terminalFocus"
}, },
//
// Pane navigation // Pane navigation
//
{ {
"key": "alt+i", "key": "alt+i",
"command": "workbench.action.navigateUp", "command": "workbench.action.navigateUp"
}, },
// Workaround for alt+i not working in VSCode. // Workaround for alt+i not working in VSCode.
{ {
"key": "cmd+alt+up", "key": "cmd+alt+up",
"command": "workbench.action.navigateUp", "command": "workbench.action.navigateUp"
}, },
{ {
"key": "alt+l", "key": "alt+l",
"command": "workbench.action.navigateRight", "command": "workbench.action.navigateRight"
}, },
{ {
"key": "alt+j", "key": "alt+j",
"command": "workbench.action.navigateLeft", "command": "workbench.action.navigateLeft"
}, },
{ {
"key": "alt+k", "key": "alt+k",
"command": "workbench.action.navigateDown", "command": "workbench.action.navigateDown"
}, },
// //
// Undo/Redo // Move active editor group
//
{
"key": "shift+alt+k",
"command": "workbench.action.moveActiveEditorGroupDown"
},
{
"key": "shift+alt+j",
"command": "workbench.action.moveActiveEditorGroupLeft"
},
{
"key": "shift+alt+cmd+up",
"command": "workbench.action.moveActiveEditorGroupUp"
},
{
"key": "shift+alt+l",
"command": "workbench.action.moveActiveEditorGroupRight"
},
//
// Move active editor into group
//
{
"key": "ctrl+shift+i",
"command": "workbench.action.moveEditorToAboveGroup"
},
{
"key": "ctrl+shift+k",
"command": "workbench.action.moveEditorToBelowGroup"
},
{
"key": "ctrl+shift+j",
"command": "workbench.action.moveEditorToLeftGroup"
},
{
"key": "ctrl+shift+l",
"command": "workbench.action.moveEditorToRightGroup"
},
//
// Undo/redo
// //
{ {
"key": "alt+-", "key": "alt+-",
@@ -104,18 +164,8 @@
"when": "editorTextFocus && !editorReadonly" "when": "editorTextFocus && !editorReadonly"
}, },
// //
// Text Navigation // Text navigation
// //
{
"key": "alt+f",
"command": "cursorWordPartRight",
"when": "editorTextFocus"
},
{
"key": "alt+b",
"command": "cursorWordPartLeft",
"when": "editorTextFocus"
},
{ {
"key": "ctrl+t", "key": "ctrl+t",
"command": "workbench.action.gotoSymbol", "command": "workbench.action.gotoSymbol",
@@ -135,18 +185,8 @@
"when": "editorHasReferenceProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor" "when": "editorHasReferenceProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor"
}, },
// //
// Text Manipulation // Text manipulation
// //
{
"key": "alt+d",
"command": "deleteWordPartRight",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+backspace",
"command": "deleteWordPartLeft",
"when": "editorTextFocus && !editorReadonly"
},
{ {
"key": "ctrl+c ctrl+/", "key": "ctrl+c ctrl+/",
"command": "editor.action.commentLine", "command": "editor.action.commentLine",
@@ -191,7 +231,7 @@
}, },
{ {
"key": "ctrl+x ctrl+d", "key": "ctrl+x ctrl+d",
"command": "editor.action.duplicateSelection", "command": "editor.action.duplicateSelection"
}, },
{ {
"key": "ctrl+c ctrl+.", "key": "ctrl+c ctrl+.",
@@ -206,6 +246,29 @@
"command": "editor.action.inlineSuggest.acceptNextWord" "command": "editor.action.inlineSuggest.acceptNextWord"
}, },
// //
// Multi-cusor
//
{
"key": "alt+m",
"command": "editor.action.insertCursorAbove",
"when": "editorTextFocus"
},
{
"key": "alt+cmd+up",
"command": "-editor.action.insertCursorAbove",
"when": "editorTextFocus"
},
{
"key": "alt+/",
"command": "editor.action.insertCursorBelow",
"when": "editorTextFocus"
},
{
"key": "alt+cmd+down",
"command": "-editor.action.insertCursorBelow",
"when": "editorTextFocus"
},
//
// edamagit // edamagit
// //
{ {
@@ -265,29 +328,13 @@
// //
{ {
"key": "alt+r", "key": "alt+r",
"command": "swiper.swiper-word-at-cursor", "command": "swiper.swiper-word-at-cursor"
}, },
// //
// Multi-Cusor // Makefile task runner
// //
{ {
"key": "alt+m", "key": "ctrl+c enter",
"command": "editor.action.insertCursorAbove", "command": "make-task-provider.runTarget"
"when": "editorTextFocus" }
},
{
"key": "alt+cmd+up",
"command": "-editor.action.insertCursorAbove",
"when": "editorTextFocus"
},
{
"key": "alt+/",
"command": "editor.action.insertCursorBelow",
"when": "editorTextFocus"
},
{
"key": "alt+cmd+down",
"command": "-editor.action.insertCursorBelow",
"when": "editorTextFocus"
},
] ]

View File

@@ -17,6 +17,7 @@
], ],
"editor.semanticHighlighting.enabled": true, "editor.semanticHighlighting.enabled": true,
"editor.accessibilitySupport": "off", "editor.accessibilitySupport": "off",
"editor.minimap.enabled": true,
// //
// Files // Files
// //
@@ -128,10 +129,14 @@
"editor.formatOnSave": true, "editor.formatOnSave": true,
"editor.formatOnType": true, "editor.formatOnType": true,
"editor.insertSpaces": true, "editor.insertSpaces": true,
"editor.tabSize": 2, "editor.tabSize": 2
}, },
// //
// YAML (by RedHat) // YAML (by RedHat)
// //
"redhat.telemetry.enabled": false, "redhat.telemetry.enabled": false,
//
// Makefile
//
"makefile.configureOnOpen": true
} }