Show tooltip with function docs
From @jdumas
a "tooltip" showing us the function prototype when the mouse is hovering the function would be nice. It can be achieved with the on_hover API introduced in build 3124.
I probably won't have much time in the coming month to implement this. PRs welcome.
I've tried doing something similar (displaying variable type on hover). It interferes with sublime "Goto" popup. It might be better option to add shortcut/command to display such an information rather then using on_hover. I plan to spend few days next week to work on some enhancements so maybe I'll look more into this.
Very welcome :) I know that Anaconda does it in two ways:
- you can enable showing the description of a function upon completion
- you can call it from a submenu with a mouse
Additionaly, a shortcut seems to be appropriate. I don't know if on_hover is a good idea as it would trigger too often (not sure???).
I don't think on_hover would trigger too often. If you show the tooltip with a function prototype only when the mouse hovers the function + when the carret is currently on the function as well. At least consider making the apparition delay a setting, e.g. in CLion function prototypes are popping up all the time and this has annoyed the hell out of me.
@jdumas I'm sorry, I am missing your point. Are you for on_hover or against? Or is it about the delay? I am confused :)
I am for on_hover! As long as we can configure its delay/disable it if we find it annoying =)
Hi Guys, I've started playing with this today. I've got on_hover displaying declaration of function/member. What do you think about this? This hides popup with sublime default "goto definition" so it's not perfect. I'll work tomorrow on adding command to display this instead but that will probably require some architecture rework.

Overall nice. At least I like this one. Also, documentation would be also cool to show with some setting enabled.
By documentation you mean doxygen etc. comments? That shouldn't be a problem.
Yep, exactly. Actually, I think I would love an option for using your popups instead the sublime ones as I find those quite useless, so please don't completely remove this. It is not a bug, it's a feature :)
Yeah. I was also thinking about replacing sublime autocomplete list with custom made popup but that's a different story :)
Would this make it possible to show values of lets say definitions?Right now Sublime Text only shows where defines are located but it would be nice if the value(or possible values) are shown in the tooltip as well.
What do you mean by "value of definition"? I understand it for a variable but for function? Would you expect function body?
Lets say you have #define Foo 1 somewhere in a header file. And now I have another file which has something like #ifdef Foo etc.. Now if I hover over Foo I would like to see Foo = 1 in a Tooltip with every (possible) define.
It doesn't have anything to do with functions, but I was hoping that whatever is used here could be used for this as well.
Ah sorry I misunderstood. I had a quick look and I think it's completely possible to have this.