Escape key should close the autocomplete before switching to normal mode#327
Escape key should close the autocomplete before switching to normal mode#327
Conversation
|
Thanks for the suggestion and PR!
Currently, I suppose the change needed to do that is - * | Set mode to Normal | `set.normal` | `escape` (kakoune: insert), `escape` (helix: select) | `[".modes.set", { mode: "normal" }], ["hideSuggestWidget"]` |
+ * | Set mode to Normal | `set.normal` | `escape` (kakoune: insert, "!suggestWidgetVisible"), `escape` (helix: select) | `[".modes.set", { mode: "normal" }]` |(with the table is reformatted). And because VS Code keybindings interact in fairly complex ways, this should be tested (locally, no need to add a test) to be sure this works as expected. And |
Currently, when in insert mode and the suggest panel(autocomplete) shows up, hitting escape will close the suggest panel and switch to normal mode.
This change allows the user to only close the suggest panel. To go to normal mode, the user would have to hit escape again.
A situation where this is helpful is when the suggest panel pop up together with github copilot suggestion. We want to stay in insert mode to accept github copilot suggestion