atom-keymap icon indicating copy to clipboard operation
atom-keymap copied to clipboard

Allow chords

Open nathansobo opened this issue 11 years ago • 13 comments

There's some discussion in https://github.com/atom/vim-mode/issues/221 about allowing bindings based on multiple keys being smashed simultaneously. This is pretty tricky, because if we detected a keydown for a key involved in a chord, we'd need to wait for a keyup before we could be sure the chord wasn't being triggered. Not a super high priority right now, but worth implementing in the future.

nathansobo avatar May 09 '14 16:05 nathansobo

:+1:

docwhat avatar May 09 '14 21:05 docwhat

Yeah, I really want to type 'j k' to escape from insert mode.

zhonghcc avatar May 18 '14 12:05 zhonghcc

:+1: This would be a great reason to switch to atom from my evil-mode key-chord-mode enabled emacs.

gepoch avatar Jun 13 '14 19:06 gepoch

This is the only think keeping me from using Atom regularly. Can we get an update on the status of this feature?

arnm avatar Aug 13 '14 15:08 arnm

There's been no progress as I am currently occupied with performance issues and solidifying the API. If anyone would like to submit a PR and link it to this issue I'd be happy to review it.

nathansobo avatar Aug 13 '14 17:08 nathansobo

This would be great to have. When something as fundamental as text input stalls it really breaks apart the developer experience between him and his work. Might as well have someone shove a piece of paper in front of your monitor every so often. Then as soon as you have an identifier beginning with e.g. "k" its enough to make me want to go back to anything that can handle this use-case haha.

jasonkuhrt avatar Sep 28 '14 22:09 jasonkuhrt

I don't suppose there's a plan for this to make it into the 1.0 release, is there? It's really the last thing keeping me away from atom.

dnmiller avatar May 16 '15 20:05 dnmiller

It sounds like many people following this issue are actually interested in key bindings for sequences like k j correctly inserting characters on partial match failures. Seems like this got a bit conflated with chords.

These kinds of sequences will be supported correctly in the next Atom release. Chords, where multiple printable character keys are hit simultaneously, are still not supported.

maxbrunsfeld avatar Jul 24 '15 18:07 maxbrunsfeld

+1 for sequence chords. (i.e. "ctrl-d, e", where you hold down "ctrl", and then type "d", and "e" sequentially, for example. -- it's a nice way to group related functionality under a root key.)

BrainSlugs83 avatar Nov 25 '15 22:11 BrainSlugs83

+1 for @BrainSlugs83's described sequence chords

jvivs avatar Jan 25 '16 23:01 jvivs

Does this issue address sequence chords? e.g. CTRL + R, CTRL + D

sbrl avatar Jun 16 '17 12:06 sbrl

Maybe I'm misunderstanding what @BrainSlugs83, @jvivs, and @sbrl are asking for, but I believe that functionality is already available via the ctrl-r ctrl-d syntax, where you would first type ctrl-r, release, then type ctrl-d.

winstliu avatar Jun 16 '17 14:06 winstliu

@50Wliu Yep! That's what I'm after. In Visual Studio, they are called key chords I think. Is this issue for something different? I wonder if the documentation documents this.

sbrl avatar Jun 16 '17 19:06 sbrl