You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to configure which-key so when an unmapped sequence is pressed it will just close and do nothing with the pressed keys accumulated until it closes?
Example to explain the issue:
I don't have <leader>fd mapped to anything. When I press that though, which-key opens, switches to the 'f' menu and when I press 'd' (that isn't mapped after 'f') it closes and pas 'fd' to the editor which acts as if 'fd' was pressed.
If I press <leader> followed by key sequence that doesn't have any meaning and doesn't normally do anything in the editor (e.g. 'gt'), which-key close and cursor moves to the next character.
Some other sequences cause other effects.
So is there a way to achieve what I'm looking for? Just ignore any presses that don't match key mappings which-key is aware of?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
Is there a way to configure which-key so when an unmapped sequence is pressed it will just close and do nothing with the pressed keys accumulated until it closes?
Example to explain the issue:
I don't have
<leader>fd
mapped to anything. When I press that though, which-key opens, switches to the 'f' menu and when I press 'd' (that isn't mapped after 'f') it closes and pas 'fd' to the editor which acts as if 'fd' was pressed.If I press
<leader>
followed by key sequence that doesn't have any meaning and doesn't normally do anything in the editor (e.g. 'gt'), which-key close and cursor moves to the next character.Some other sequences cause other effects.
So is there a way to achieve what I'm looking for? Just ignore any presses that don't match key mappings which-key is aware of?
Beta Was this translation helpful? Give feedback.
All reactions