From b1ec71d45c282ab6535d45dfab4e8aaa2ef89673 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sun, 9 Mar 2025 00:16:54 +0000 Subject: [PATCH] chore(cursor): minor tweaks to settings and keybindings --- cursor/keybindings.json | 27 +++++++++++++++++++++------ cursor/settings.json | 26 ++++++++++++++++---------- 2 files changed, 37 insertions(+), 16 deletions(-) diff --git a/cursor/keybindings.json b/cursor/keybindings.json index a322634..f468d77 100644 --- a/cursor/keybindings.json +++ b/cursor/keybindings.json @@ -217,26 +217,41 @@ }, { // Navigate up. "key": "alt+i", - "command": "workbench.action.navigateUp" + "command": "workbench.action.navigateUp", + "when": "!terminalFocus" }, { // Navigate up. // // Workaround for alt+i not working in VSCode. Relies on Karabiner-Elements // to remap alt+i to cmd+alt+up. "key": "cmd+alt+up", - "command": "workbench.action.navigateUp" + "command": "workbench.action.navigateUp", + "when": "!terminalFocus" }, { // Navigate right. "key": "alt+l", - "command": "workbench.action.navigateRight" + "command": "workbench.action.navigateRight", }, { // Navigate left. "key": "alt+j", - "command": "workbench.action.navigateLeft" + "command": "workbench.action.navigateLeft", }, { // Navigate down. "key": "alt+k", - "command": "workbench.action.navigateDown" + "command": "workbench.action.navigateDown", + }, + { // Navigate up back to editor from terminal. + "key": "alt+i", + "command": "workbench.action.focusActiveEditorGroup", + "when": "terminalFocus" + }, + { // Navigate up back to editor from terminal. + // + // Workaround for alt+i not working in VSCode. Relies on Karabiner-Elements + // to remap alt+i to cmd+alt+up. + "key": "cmd+alt+up", + "command": "workbench.action.focusActiveEditorGroup", + "when": "terminalFocus" }, // // =========================================================================== @@ -683,7 +698,7 @@ // This is a workaround for ctrl+f not working globally as right arrow in // all input fields. This relies on Karabiner-Elements to remap ctrl+f to // right arrow. - "key": "ctrl+c right", + "key": "ctrl+c , right", "command": "macros.runTestDebugFailTests", "when": "editorTextFocus" }, diff --git a/cursor/settings.json b/cursor/settings.json index ab6bf55..f4f976b 100644 --- a/cursor/settings.json +++ b/cursor/settings.json @@ -28,6 +28,22 @@ "window.title": "${rootName}${separator}${profileName}", // // =========================================================================== + // MARK: Cursor (Text Editor) + // =========================================================================== + // + "cursor.aipreview.enabled": true, + "cursor.cpp.enablePartialAccepts": true, + "cursor.diffs.useCharacterLevelDiffs": true, + "cursor.terminal.usePreviewBox": true, + "cursor.general.enableShadowWorkspace": true, + // + // =========================================================================== + // MARK: Windsurf (Text Editor) + // =========================================================================== + // + "windsurf.autocompleteSpeed": "fast", + // + // =========================================================================== // MARK: Editor // =========================================================================== // @@ -133,16 +149,6 @@ "diffEditor.ignoreTrimWhitespace": false, // // =========================================================================== - // MARK: Cursor - // =========================================================================== - // - "cursor.aipreview.enabled": true, - "cursor.cpp.enablePartialAccepts": true, - "cursor.diffs.useCharacterLevelDiffs": true, - "cursor.terminal.usePreviewBox": true, - "cursor.general.enableShadowWorkspace": true, - // - // =========================================================================== // MARK: Terminal // =========================================================================== //