fix(cursor): allow tab to work like emacs again

Latest cursor update seems to have broken awesome-emacs-keymap's
"emacsLikeTab" feature. This manually adds the same keybinding with one
extra conditional check which Cursor uses when certain types of inline
suggestions are used.
This commit is contained in:
2025-02-23 22:47:20 +00:00
parent b6c291c44c
commit 537ca9f9dd
2 changed files with 8 additions and 1 deletions

View File

@@ -260,6 +260,13 @@
// Text manipulation
// ===========================================================================
//
{ // Set indentation to correct level.
// This was borrowed from the awesome-emacs-keymap extension and modifed to
// add the `!cpp.shouldAcceptTab` condition for the sake of Cursor.
"key": "tab",
"command": "emacs-mcx.tabToTabStop",
"when": "editorTextFocus && !editorReadonly && !inlineSuggestionVisible && !editorHoverFocused && !editorTabMovesFocus && !suggestWidgetVisible && !inSnippetMode && !editorTabCompletion && !editorParameterHintsVisible && !cursorAtInlineEdit && !cpp.shouldAcceptTab"
},
{ // Comment line.
"key": "ctrl+c /",
"command": "editor.action.commentLine",

View File

@@ -77,7 +77,7 @@
// Extension URL:
// - https://marketplace.visualstudio.com/items?itemName=tuttieee.emacs-mcx
//
"emacs-mcx.emacsLikeTab": true,
"emacs-mcx.emacsLikeTab": false,
"emacs-mcx.killRingMax": 120,
"emacs-mcx.markRingMax": 32,
//