-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Ctrl-d/Ctrl-u to scroll the option's documentation on auto-complete #4364
Conversation
I imagine the same scroll keys should be used as for scrolling in #4189 |
Currently, documentation scrolling in popups that appear by doing |
Updating with new commits
This is probably another PR, but it would be great if markdown previews of documentation could show if there was more to scroll up or down to. At the moment, when you see the docs in a popup you don't know if you are seeing the whole thing or need to scroll down to read more. If there were a symbol like |
Yeah some sort of hint for how much documentation would be a nice feature (though separate from this PR) #1248. Maybe a scrollbar is sufficient |
@David-Else @the-mikedavis I could try to copy the menu scroll bar mechanism into the Popup and see how far I can go. |
Is there any chance of getting this fix merged? Scrolling inside the auto-complete popup is still broken I think. |
closing this one as stale, #8047 is a newer implementation. Thank you for contributing! |
Fixes #3062. The Markdown documentation is now treated as a separate
Box<Popup<Markdown>>
. So, aCompletion
object now has 2Popup
s; one for theMenu
(as before) and a new one for the relevant option's documentation. Currently, the code creates a newBox<Popup<Markdown>>
only when the user moves to another option.Let me know if there is any additional optimisation needed, like:
runningPopup::required_size()
insideCompletion::render()
only when the option changes (currently, it runs every time scroll happens).