vscode-emacs-mcx
vscode-emacs-mcx copied to clipboard
support camel case (subword-mode)
It would be nice if all the word commands could be configured to support camel case, like when using emacs subword-mode: http://wikemacs.org/wiki/Subword-mode
I know there are vscode commands to accomplish this, but for some reason they don't seem to support the configured word separators - so, cursorWordPartRight works for camel case, but for kebab-case-words, this will first stop after the "b", but the next stop is after the first "-", and not at the end of "case" as expected.
So, now I have 2 keybindings - the normal M-f emacs keybinding, and the another one for cursorWordPartRight, which is not ideal.
I would also love this, as it's the only real blocker to me using emacs-mcx since I work with lots of code written in camelCase :-)
I use the following keybindings for using 'emacs-mcx' together with 'Camel Case Navigation' extension
And it suites my common edit task needs
{ "key": "alt+f", "command": "cursorWordPartRight", "when": "textInputFocus && !emacs-mcx.inMarkMode" }, { "key": "alt+f", "command": "cursorWordPartRightSelect", "when": "textInputFocus && emacs-mcx.inMarkMode" }, { "key": "alt+b", "command": "cursorWordPartLeft", "when": "textInputFocus && !emacs-mcx.inMarkMode" }, { "key": "alt+b", "command": "cursorWordPartLeftSelect", "when": "textInputFocus && emacs-mcx.inMarkMode" }, { "key": "alt+backspace", "command": "deleteWordPartLeft", "when": "textInputFocus && !editorReadonly" }, { "key": "alt+d", "command": "deleteWordPartRight", "when": "textInputFocus && !editorReadonly" },
Does that work for you with kebab-case-words?
@OrenHg How exactly do you configure that in VSCode? Do you mean you add those objects to the Camel Case Navigation settings.json
doc?