-
-
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
feat: new command to open hover documentation in a new buffer instead of a popup #12208
base: master
Are you sure you want to change the base?
Conversation
trying this feature out in my fork and loving it! except, I'd rather it be a horizontal split. I could also see an argument for |
Adding configuration for this small thing is easily going to be rejected by the maintainers. Other adjustments would also be increasing complexity and could delay this PR from being merged |
fair enough. let's get this merged first |
What you can also do, at least, if you are working with one pane, is transposing your layout with |
@TornaxO7 yep thank you! I am aware |
So, you can use
Space + k
to hover documentation which opens a popup.However, sometimes it's really useful to be able to search inside this popup. Or go into it, move around, copy some text, etc. Some hover-docs can be quite long.
This PR adds a new command called
hover_dump
, which dumps the "documentation on hover" into a new scratch buffer, where you can use your usual Helix motions. this is how it looks like (window on the right):The red box is where my cursor was, and it opened the documentation in a new buffer instead of a popup.
I bound
hover_dump
toSpace + K
, whereashover
wasSpace + k
.Closes #12206
Closes #8134
Closes #9455