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

Allow ctrl/command swap

Open philipnilsson opened this issue 3 years ago • 5 comments

So I (and apparently many others going by google results) find it really uncomfortable using ctrl to the degree it's used in Emacs, and use some kind of rebinding mechanism between modifier keys. My specific problem is that since I'm on a Mac the key bindings are mostly comfortable by default - the most commonly used one (command) is easily pressed with your thumb. However - the bindings are not emacs-like - which poses a big problem. It would be fantastic if there was some way to move the existing key bindings over to control - while putting all the key bindings that come from emacs on command (Command-K for kill-end-of-line, etc).

I figured out how to do this by copying all the settings from the default key bindings that this plugin generates ("Preferences: Open default keyboard shortcuts.") and copying them into the modifiable settings file ("Preferences Open keyboard shortcuts) and then using search-and-replace to swap them all. This is a bit unintuitive and somewhat dumb to maintain since you have to manually splice in your existing customizations if you have them etc. Since you already offer swapping command as meta, perhaps it wouldn't be too difficult to also allow swapping the ctrl / command keys.

If not I hope this ticket will still be useful to someone Googling for the same solution, since it took me some time to figure out an approach that at least worked - even if it's not idea.

philipnilsson avatar Oct 17 '21 12:10 philipnilsson

https://github.com/whitphx/vscode-emacs-mcx#emacs-mcxusemetaprefixmaccmd ?

whitphx avatar Oct 17 '21 15:10 whitphx

@whitphx That's for meta - not ctrl, right? Or is there something I'm missing?

philipnilsson avatar Oct 18 '21 07:10 philipnilsson

Ah, right. That's my misinterpretation. Currently it's not supported.

It is technically possible to add it, but I don't want to add non-standard functionality easily (option and command as META are the official standard) and I don't know how many users want it. Let me consider about this.

To these who want this change, please add 👍 to this issue.

whitphx avatar Oct 18 '21 16:10 whitphx

Would love this feature

pmcvay avatar Jul 05 '22 20:07 pmcvay