On Wednesday, February 1, 2017 at 3:04:03 PM UTC+1, Bram Moolenaar wrote: > This should be possible in a way similar to what the netbeans interface does.
I am not really familiar with the netbeans interface but I can see it is socket-based. My client-server is based on message queues though. Are they going to be compatible? > Triggering the evaluation happens in general_beval_cb(). It calls > netbeans_beval_cb(). This can work by setting 'balloonexpr', but have > it return an empty string, so that nothing shows up yet. Thus that > already works. Right. This is what I already use to catch the mouse hover event. I thought having it supported in a more explicit way (e.g. autocmd event) would be a good alternative approach. > Showing the balloon (tooltip) happens with the "showBalloon" netbeans > command, which calls gui_mch_post_balloon(). So, if I understood you well, we can send "showBalloon" to the Vim in order to get the tooltip shown? > We would need a way to make this work with a channel command. Using "call" > is > probably the simplest, then we only need to add a function that shows > the balloon. I am not sure if I understand this. Channel command? Is it a Vim API function that we could invoke via --remote-send clientserver interface? And in that case we wouldn't be using netbeans interface? > Another thing that would be nice: Also make this work in the terminal. > Could be implemented like we have the popup menu. Should be as simple > as balloon_show(). For completenes we could add balloon_hide(). > Perhaps you could implement that? I can't promise anything but I think I could give it a try. I am not familiar with the Vim code-base. Regards, J. Bakamovic -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
