Skip to content
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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

NikitaRevenco
Copy link
Contributor

@NikitaRevenco NikitaRevenco commented Dec 6, 2024

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):

image

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 to Space + K, whereas hover was Space + k.

Closes #12206
Closes #8134
Closes #9455

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Entering the Popup Documentation Window (to select text etc.)
2 participants