Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Allow chords #17

Open
nathansobo opened this issue May 9, 2014 · 13 comments
Open

Allow chords #17

nathansobo opened this issue May 9, 2014 · 13 comments

Comments

@nathansobo
Copy link
Contributor

There's some discussion in atom/vim-mode#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.

@docwhat
Copy link

docwhat commented May 9, 2014

👍

@zhonghcc
Copy link

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

@gepoch
Copy link

gepoch commented Jun 13, 2014

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

@arnm
Copy link

arnm commented Aug 13, 2014

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

@nathansobo
Copy link
Contributor Author

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.

@jasonkuhrt
Copy link

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.

@dnmiller
Copy link

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.

@maxbrunsfeld
Copy link
Contributor

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.

@BrainSlugs83
Copy link

+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.)

@jvivs
Copy link

jvivs commented Jan 25, 2016

+1 for @BrainSlugs83's described sequence chords

@sbrl
Copy link

sbrl commented Jun 16, 2017

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

@50Wliu
Copy link
Contributor

50Wliu commented Jun 16, 2017

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.

@sbrl
Copy link

sbrl commented Jun 16, 2017

@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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests