Is it possible to ignore the ESC key if the IDE autocomplete window is open? #687
Replies: 3 comments 2 replies
-
Hi there. This is the original behavior of Vim (both closing completion and exiting insert mode). Vim does have to commands to close the completion without exiting insert mode, but they're currently not supported by IdeaVim: VIM-3049 |
Beta Was this translation helpful? Give feedback.
-
Thanks very much for the link, @AlexPl292 I think it's a strange default behaviour (we're using a single keypress to trigger two different actions in two different features, one of which has been activated automatically), but there seems to be consensus in those other threads and tickets that that's the expected behaviour, and it does keep the result of the keypress state-independent. Enabling Any hints where I should look around in https://github.com/JetBrains/ideavim to see if I can find the relationship between the |
Beta Was this translation helpful? Give feedback.
-
Yeah, we're in bad need of a separate command like |
Beta Was this translation helpful? Give feedback.
-
Here's the use case that's affecting my productivity:
I asked about this over on the JetBrains forum as well:
https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000679170/comments/12861128642322
Surely this is a common issue when using both IdeaVim and the IDE native autocomplete. Has anyone found a solution?
Is there a way to detect when the autocomplete window is active, and ignore the ESC key when that's the case? I imagine this could be done with a vim script, but we'll need something on which to test the conditional.
Another option is to change the vim keymapping to require two ESC presses, but that runs counter to the reason I use vim, namely to reduce time and keypresses.
Another option is to use vim plugins for autocomplete (if that's possible) and disable the native autocomplete, but I'd lose the rest of the autocomplete functionality (TabNine, GitHub Copilot, other IDE features)
Cheers
Beta Was this translation helpful? Give feedback.
All reactions