-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Improve some godoc's popup window #2447
Conversation
Thank you for the contribution. When the current tab is split into two windows, though, I suspect that this won't work quite the way you might expect. A few things to consider:
|
I think if user want to open more one godoc, use buffer is more better.
How about this fixing?
|
The option is global, though, and doesn't take into account how many windows are open, nor does it take into account how many tabs are open, it simpy closes the last opened godoc popup window. I think this can be handled better by making
I'll think about ☝️ and get back to you |
It's easy to display multiple popup windows, but how do you think it should be displayed and controlled? I think the following controls are needed.
In this way, the operation becomes complicated, so i think that usability will be reduced. |
I'll play with this and get back to you. |
@bhcleek Hi, how about this PR? |
@skanehira I'll get to this soon. I have a couple of things in front of it that I need to get done first. I'll update here as soon as I've had a chance to review more thoroughly. |
@bhcleek I got it :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I finally had a chance to look at this in more detail. Thank you for taking the time to contribute and for being patient while it sat here without feedback.
I believe that popup_atcursor
is preferable to popup_menu
, because the doc window is not a menu and shouldn't behave like one. However, maybe it makes sense to use popup_create
instead of popup_atcursor
so that the syntax highlighting and the filetype can be set for the buffer. Can you tell me more about why you prefer the doc window to be in the center of the screen instead of near the cursor?
Using popup_atcursor
would raise questions about whether there should be a filter or not, and if so, what it should be.
Have you encountered some problems with the current implementation that motivated you to set maxheight
and maxwidth
?
doc/vim-go.txt
Outdated
|
||
Use this option to dislpay godoc in popup window. By default is disable. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dislpay
-> display
@skanehira should I close this? |
@bhcleek I'm sorry for being late.
If window popup at the screen center, window can use more screen space for long doc.
I want to watch long doc using more screen space, so I used maxheight and max width. |
|
@bhcleek Ok, I'll use |
@skanehira I'm wondering whether you plan to finish this up? If not, that's ok; let me know so I can decide what to do with this PR. |
@bhcleek Sorry, I'm so late.. |
I improve some :)