company-quickhelp
company-quickhelp copied to clipboard
how to adjust the position of quickhelp
Hi,
This package seems to locate its quickhelp in the right middle of its completion list like this.
I'd like to adjust it up to the top right of its completion list like as eldoc in AC package. Could you please let me know how to do it?
What you're seeing is a bug, it's not supposed to work like that. Are you on OSX? If so, you too might be suffering from this bug.
If you want to mess around with this yourself, these are the variables to twiddle.
@expez I'm not quite seeing that bug, but ultimately I came here to request the same thing: some kind of setting to control where the tool tip appears. In my case, the problem is that I'm working with emacs on the left of my two monitors. When working with a pane in the right of emacs, the tooltip decides that since there's more space available, it's ok to span the tooltip onto my second monitor. This makes it hard to read the tooltip in practice. When emacs is on my right monitor, the tooltip has nowhere to shift so far right so it does something more reasonable.
This could be solved either by a setting that allows treating the monitor as a hard boundary (which may be difficult), or by having some kind of variable that controls the relative tooltip position. For instance, this may sound strange to some but I'd be happy to put the tooltip slightly above the text I'm completing.
@quicknir Yeah, that would be cool.
That feature belongs in pos-tip
, though, which is reponsible for displaying the popup. All I do is go "Display this text in a popup near this position.".
I've delegated this stuff to pos-tip
, because I'm no glutton for punishment. It's really hard work to maintain solid cross-platform behavior with regard to popups.
Same issue on open suse with emacs 25.1.1.
Hi. I just installed the plugin and my problem is that company-quickhelp puts the documentation in place of autocomplete (so I don't see list of available functions) in case neotree is opened. If neotree is closed - it seems to work well.
company-box locate the 'quickhelp' nicely. Can we have the same thing ?
- there is little space between company tooltip and 'quickhelp'
- the quickhelp doesn't have line border
Thank you
Yes, that might be possible as an alternative to pos-tip
. That would mean dropping support for all emacs < 26 AFAICT. Not sure that would be a good idea just yet.
Thanks for bringing that library to my attention!
@azzamsa Any particular reason you didn't just want to use company-box
?
If it's about its lack of some "standard" features, you can try https://github.com/tumashu/company-posframe/ now. That one includes quickhelp functionality as well.
there is little space between company tooltip and 'quickhelp'
This one seems easy enough to add. What distance would people like?
@dgutov missing support for number. But there is a patch for that now. I will give it second try.