-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Remapping keys to close two popups at the same time #5990
Comments
The handling of Escape is a special case in two places:
It's not currently possible to rebind keys for components - that is covered by #5505. Supporting this case might take some extra work on top of that since these two popups are special cases: Escape is not ignored by all Popup components. |
Building on the pseudocode for the new config in the #5505 description, it might be nice to expose this as the popup's ID tacked onto [keys.popup.completion]
C-c = "ignore"
[keys.popup.signature-help]
C-c = "ignore" |
Thank you for the walkthrough! This saved me a lot of time going through the source code. For now, I just forked and use [keys.popup]
C-c = "normal_mode"
C-s = ["normal_mode", ":w"] So I think the proposed config solution in #5505 is very much in line with intuition and using |
Hello, have just switched to helix from neovim and I am quite impressed.
However often when writing, both the code completion and definition pop up appear at the same time. I always use
Ctrl-c
to close and have remappedC-c = "normal_mode"
in all modes. I still find that I need to press it twice to close both popups, but when usingEscape
, it actually closes both popups and returns to normal mode. Is there a way to remap a key to do whateverEscape
does there? I am using the latest22.12 (0a7cd97d)
version built from source.The text was updated successfully, but these errors were encountered: