Popup window functionality implemented

63 views
Skip to first unread message

Bram Moolenaar

unread,
Jul 4, 2019, 11:04:47 AM7/4/19
to vim...@googlegroups.com

Most of the popup window support has now been implemented. There are a
few things to improve and add, but it should be good enough to use.

Please give it a try and look out for things that don't work properly.
We can still make some changes where needed, but soon making changes
that are not backwards compatible will cause trouble.

I decided to keep the details about the popup window functions in
popup.txt, instead of moving them to eval.txt. That file has become too
big and listing all the functions there does not make much sense. The
alphabetical list can still be used to search for something, and the
index by functionality is at ":help function-list".

I'll also move the terminal functions. We can do more, but some
functions don't have a good help file to move to.

--
What the word 'politics' means: 'Poli' in Latin meaning 'many' and 'tics'
meaning 'bloodsucking creatures'.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

Paul Jolly

unread,
Jul 5, 2019, 7:04:05 AM7/5/19
to Vim Dev Mailing List
Hi Bram,

> Most of the popup window support has now been implemented. There are a
> few things to improve and add, but it should be good enough to use.

This is fantastic work, thanks. I have a queue of changes to govim
that I will be making over the next month to use this. Exciting times!

One feature that is outstanding from my perspective is the concept of
a balloonpopup, per:

https://groups.google.com/forum/#!msg/vim_dev/-LDoaq3wAl8/eSb-hIBJAgAJ

Is this still feasible? Because I'd move to using it tomorrow if I could :)

Thanks,


Paul

Bram Moolenaar

unread,
Jul 5, 2019, 3:53:49 PM7/5/19
to vim...@googlegroups.com, Paul Jolly
Yeah, it's been on my mind. But I want to do it properly: when the
mouse moves over the popup, it should not be closed. That would allow
for expanding tree nodes, for example, when inspecting the value of a
nested structure. Or a tooltip when hovering over an item in the popup.

It should also be possible to move the mouse into the popup window, with
some tolerance to avoid it closing when you don't want it to.

--
Nothing is impossible for the man who doesn't have to do it.

Paul Jolly

unread,
Jul 5, 2019, 4:17:35 PM7/5/19
to Bram Moolenaar, Vim Dev Mailing List
> > Is this still feasible? Because I'd move to using it tomorrow if I could :)
>
> Yeah, it's been on my mind. But I want to do it properly: when the
> mouse moves over the popup, it should not be closed. That would allow
> for expanding tree nodes, for example, when inspecting the value of a
> nested structure. Or a tooltip when hovering over an item in the popup.
>
> It should also be possible to move the mouse into the popup window, with
> some tolerance to avoid it closing when you don't want it to.

All excellent points. Thanks for confirming this is still on the cards.

Santosh Wadghule

unread,
Jul 16, 2019, 2:04:15 AM7/16/19
to vim_dev
Great, this is going to be useful! Thanks for this great work!
Reply all
Reply to author
Forward
0 new messages