Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add suggested completions for key chords #3969

Open
pcgeek86 opened this issue Mar 10, 2016 · 8 comments
Open

Add suggested completions for key chords #3969

pcgeek86 opened this issue Mar 10, 2016 · 8 comments

Comments

@pcgeek86
Copy link

@pcgeek86 pcgeek86 commented Mar 10, 2016

With more complex key chords, it would be incredibly helpful to have "suggested" completions, based on the first element of the chord. For example, consider the following complicated workflow:

  1. You type CMD + K
  2. Visual Studio Code waits for the next key of the chord (but doesn't tell you what valid options could be typed)
  3. User forgets or doesn't know the shortcut he wants, so he hits ESCAPE
  4. User hits F1 to search for the desired command and keyboard shortcut
  5. User hits ESCAPE
  6. User executes keyboard shortcut

Instead, what should happen is that VS Code should show the users all of the key chords (or perhaps most commonly used commands by that specific user, based on telemetry data), that could possibly be pressed.

This would have the following benefits:

  • Significantly improve the user experience
  • Ease the learning of new keyboard shortcuts
  • Tailor the Visual Studio Code environment to each user (optional)

Cheers,
Trevor Sullivan
Microsoft MVP: PowerShell
https://trevorsullivan.net
https://twitter.com/pcgeek86

@dakaraphi
Copy link

@dakaraphi dakaraphi commented Feb 26, 2017

Eclipse does this and it is very nice. You have a popup menu after waiting about 1 second. You can then use the cursor keys to pick an item or finish the key chord.

image

@alexdima alexdima added this to the Backlog milestone Mar 1, 2017
@alexdima alexdima removed their assignment Mar 1, 2017
@jtanner
Copy link

@jtanner jtanner commented Aug 23, 2017

http://spacemacs.org/ has this too and I love it. It makes discovering and learning key bindings easy.

Spacemacs discoverability

@CptDarling
Copy link

@CptDarling CptDarling commented Sep 13, 2018

Eclipse does this and it is very nice. You have a popup menu after waiting about 1 second. You can then use the cursor keys to pick an item or finish the key chord.

image

Blender also pops up a menu when there are more chords available.

@andersennl
Copy link

@andersennl andersennl commented Nov 7, 2018

Has there been any progress on this topic? I came here searching for how to use shortcut chords, thinking VSCode already had this feature.

I’ve found this extension which might be the answer: https://marketplace.visualstudio.com/items?itemName=michaelgriscom.leadermode

@arthurborisow
Copy link

@arthurborisow arthurborisow commented Nov 22, 2019

Is there any plans to support it? Or are there any extensions which might help with that? The one above is not exactly what the topic starter meant I guess

@macintacos
Copy link

@macintacos macintacos commented Dec 26, 2019

Just to expand on this; I think that it's important to have this feature if you want to build up a set of mnemonic chords for shortcuts, similar to how Spacemacs is set up. This, plus the addition of 3-step chords (#6966), would make VSCode really flexible for the users that want to make sure their setup is exactly the way they want it.

@ashketchupppp
Copy link

@ashketchupppp ashketchupppp commented Mar 1, 2020

+1 to this, I'm trying to move from spacemacs and the which key extension is amazing, I want to setup my keybinds so that all non-text editing keybinds are using chords and it is a pain in the arse. This would make my life so so much easier

@macintacos
Copy link

@macintacos macintacos commented Mar 1, 2020

Shameless plug, but in this vein I created a keymap called Chord Heavy, inspired by Spacemacs chords. It’d greatly benefit from having this feature added!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
9 participants
You can’t perform that action at this time.