mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 12:26:39 +00:00
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:
@@ -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",
|
||||
|
||||
@@ -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,
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user