-
Notifications
You must be signed in to change notification settings - Fork 17
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
whichkey.delay
causes a delay in SPC SPC
shortcut, others seem to be unaffected
#65
Comments
That's pretty weird. I tried both your |
Apologies for the delay here. I think that the issue may be unrelated to the setting itself, it seems to just make it easier to encounter. I tried using VSCode's "extension bisect" while using the method described here to keep VSpaceCode (and related extensions) enabled, and can still reliably reproduce it. I even disabled every setting from Vim/which-key/vspacecode and can still see it. The most reliable setup I have is:
|
Just double checking. I assume you are bisecting which-key versions?
If it is not related to the
|
I'll look into everything you mentioned, but first thing: the fact that you only see one |
I used https://github.com/keycastr/keycastr and it displays multiple characters at a time. Not sure if this helps. |
I tried to turn off this option and the problem disappeared. |
Bug description
When playing around with the
whichkey.delay
setting, I noticed thatSPC SPC
would not get registered, whereas going into a menu and executing a command in there (such asSPC f f
) worked fine no matter how fast I executed it. It seems like no matter what, forSPC SPC
you have to wait for the full delay before the command will be registered.It's not clear to me whether or not this is intentional, however because things like
SPC f f
work as fast as I can type it, I am assuming that this is not intentional.To Reproduce
whichkey.delay
to 500 (or some larger arbitrary value)SPC f f
as quickly as you can (faster than thewhichkey.delay
) to search for some files. Note that the list of files comes up immediately, with no delay.SPC SPC
as quickly as you can (again, faster than thewhichkey.delay
). Notice how this command doesn't get executed until you wait for the menu to fully render.Expected behavior
SPC SPC
would bring up the command prompt as quickly asSPC f f
brings up the list of files to search for.Screenshots
It's hard to see this in the following recording, but you can see me updating this option from 0 to 500 and notice how I have to wait for the menu to display fully before being allowed to run the
SPC SPC
command:CleanShot.2022-04-11.at.13.58.04.mp4
Additional context
Keybindings
My keybindings are far too large to fit into a GitHub issue, but thankfully I keep them backed up here: https://github.com/macintacos/dotfiles/blob/trunk/vscode/keybindings.json
Settings
My settings are available here: https://github.com/macintacos/dotfiles/blob/trunk/vscode/settings.json
System information
The extensions I use are here: https://github.com/macintacos/dotfiles/blob/trunk/backup/vscode-extensions-backup.txt (yes, I know it's a lot, but I don't think the number of extensions I'm using is the problem 🙂 )
Here's my system info, if that matters:
The text was updated successfully, but these errors were encountered: