vscode-emacs-mcx icon indicating copy to clipboard operation
vscode-emacs-mcx copied to clipboard

support camel case (subword-mode)

Open schmeic opened this issue 4 years ago • 4 comments

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.

schmeic avatar Jun 18 '20 22:06 schmeic

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 :-)

mmuurr avatar Dec 03 '20 00:12 mmuurr

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" },

OrenHg avatar Jan 13 '21 01:01 OrenHg

Does that work for you with kebab-case-words?

schmeic avatar Jan 13 '21 03:01 schmeic

@OrenHg How exactly do you configure that in VSCode? Do you mean you add those objects to the Camel Case Navigation settings.json doc?

mmuurr avatar Apr 07 '21 06:04 mmuurr