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
Feature request: Put the contents of the preview into the completion or put into command line as a message #1274
Comments
That isn't a bad idea, the problem is that we can't fit a lot of info there. Also, in the case of overloads, which overload should we show? This is a tough problem that's entirely created by Vim's shitty API/lack of features. IDE's solve this in a variety of ways that aren't possible to implement in Vim. |
Hmm, good point. Gotta have my overloads. Sigh, probably gotta build some independent tweak that has some binds to help manage the closing the preview window (and eventually integrate it into the autoclose system in YCM). I am envisioning something akin to the way that I'm able to save a session and restore it and it even gets the window positions right. This is out of my vimrc:
Not sure how helpful Also found this plugin But this will surely at least involve some annoying flickering back and forth as we remove the preview window and then scramble to restore state. |
@unphased If I'm not wrong the |
Its no issue if you've got one window (or heck even vertical split windows, which most folks never progress beyond). You can reproduce with a window like this:
It is perhaps an "advanced" vim feature. Then you do some completion, get the preview to open:
Upon closure of preview it will forcibly reset what you set up.
|
oh so what you want is to remember for each visible window the |
Even better, instead of tracking the |
Multiplexing the popup menu to acquire multiple roles, like done in #1300, may also be an alternative to solve this problem. |
Any update on fixing this? |
It’s not broken? |
Not broken per se, but would be nice if the preview window wouldn't resize splits. |
YCM now support signature help for most languages and you can set |
I love having critical argument information about functions, etc, in the preview window (and it works in Javascript as well!), but I really hate how autoclosing the preview window will mess up the window layout of my vim tab (by equalizing spacing).
It is not really a solution to just leave the preview window hanging around for every single window, because say I have 4 (okay... 3 is more realistic) windows open in one tab, that's a lot of wasted space! Alright, the same preview window gets reused, still, but having 4 lines hanging around doing nothing most of the time is still unacceptable.
I also don't know why docs mention that it should show up at the top, but it always shows up underneath, for me. None of that matters. It's both lovely (tells me something often really useful) and vile (destructively undoing my OCD window sizing work) at the same time, so it has to go because that info must have a way to get to me another way.
I get that its probably a Vim limitation that removing a window will bork the layout, but i am hoping there's some alternate way to temporarily view this information. Either by tacking it into the completion somehow, or failing that, just stuffing that info into the Vim command line. I think it's perfectly suited for putting this info into the command line. Its just like warnings/errors text, i only need to look at it for about one quarter of a second.
The text was updated successfully, but these errors were encountered: