insert mode: context free popups - hover #5549
Labels
C-bug
Category: This is a bug
S-waiting-on-author
Status: This is awaiting some action (such as code changes or more information) from the author.
Summary
I've not yet figured out how to intentionally trigger the 'hover' display from insert-mode without (assumption) using a keymap. I assume it occurs between parentheses (don't know if it's expected to appear elsewhere, I think struct/class/func-names should be possible) but it does not go away when it does come up, even after I've made changes in contexts that don't warrant its presence, like when completions are in view, or should spawn a new instance.
I can close it by
esc
, but that also exits insert mode.it also closes when:
I have some ideas for a solution, that could also help with #1381 and #4144, but before I get to those its important to at least ask the following question:
A solution should, if even necessary, address or circumvent two things:
The following solutions lean on circumvention, the difficulties are estimates by someone who is admittedly not very familiar with the code base:
esc
handler such that it first looks for sub-displays (command menus, pickers, command palette, /dev/stdout, ..., completions, hovers) and closes the top one before returning. Go to normal mode if, and only if, none are found.a) could be easy if all of those sub-displays implement a common interface and those interfaces already have a syntactic access point
Reproduction Steps
na
Helix log
na
Platform
Linux
Terminal Emulator
Tmux in gnome-terminal
Helix Version
helix 22.12 (051cd78)
The text was updated successfully, but these errors were encountered: