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
Make the floating window scrollable or able to have cursor on it #9
Comments
which widget are you referring to? I intentionally made preview window unfocusable, because you do not need to close it manually. The “close” action will actually break your workflow. I don’t want this interruption, so it is unfocusable. But there is already a
for this and you can map it to alt+f or alt+b to scroll forward or backward without focusing on it. |
Hi @skywind3000, thanks for your comment. Yes, sorry I forgot to say I was referring to preview windows (e.g. For example, let's imagine a preview windows is opened and one may want to scroll this pop-up window to see more lines. Scrolling mouse wheels would be very intuitive but the focus is lost, and the main window (buffer) scrolls: As a comparison, the floating window from And these plugins would also close windows automatically when a cursor (from the original window) is moved. I think this behavior is very intuitive and handy. |
fair, I will look into this later |
updated, preview window can scroll now. |
Awesome. Looking at commit d00c435, seems we have the following configurable point:
Thank you! Also, could we allow place a cursor on it rather than closing? |
important change, since more arguments have been introduced in preview window open function. it is more flexible to organize them in a dictionary, see the documentation for available options: |
Is there any way to judge if a preview popup/floating window exists? |
Some plugins like git-messenger.vim that opens up a floating window allow:
(i) to move cursor to the window (e.g. CTRL-W W) --- and then one can navigate using movement keys,
(ii) to scroll the window using mouse wheels.
This would be particularly useful when one need to see more lines a bit off around the symbol definition, quickfix location, etc. The current behavior is that the floating window opened by
quickui
is not focusable nor scrollable.It would be great if we can customize this behavior with an argument!
The text was updated successfully, but these errors were encountered: