-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Close hover documentation when cursor leaves the symbol #326
Comments
Would like to fix this but I might want to add a proper hook system first so these things can be properly abstracted. |
Quick workaround would probably be Event::Ignored also taking a callback so we could catch the key in handle_event, ignore it, but still trigger a close. |
With hx v0.4.1 on Mac, the hover is not following the cursor any more - but it does not close either. So I can open a lot of hover documentation for different items the same time. But nothing closes if I move the cursor away, what is what I expect. So how is the documentation closed? |
|
Indeed, this works. I haven't noticed, because I first tried to close / toggle the hover documentation again with K. But this apparently leads to another instance of the hover window to be placed "on top" of the other. And after pressing twice Even more strange is the behaviour if you enter into insert mode while having one or more hover windows open. Now I don't think this beaviour is wanted. Either the hover window should be closed upon cursor movement. Or the window should be toggable via |
Duplicate of #14 |
Nevermind, it's not a duplicate. |
Currently when we press
K
to open documentation for the symbol under the cursor and then move the cursor somewhere else, the documentation doesn't disappear and follows the cursor:Screen.Recording.2021-06-20.at.17.52.45.mov
I find this somewhat counter-intuitive. I expect it to disappear as soon as the cursor leaves the symbol. Is it intentional or should we try to fix this?
Environment
The text was updated successfully, but these errors were encountered: