Thursday, April 30, 2020

Re: visual mode popup menu ?

Andy, hi again

I was thinking of something like -

    call popup_menu(g:menulist, #{ title: 'MyMenuTitle:', filter: 'MyFilter', callback: 'MyCallback' })

I would highlight some code and then press a key to trigger the popup menu and select some option from that menu,
but when the menu pops I didn't want to lose the visual highlighting.
Perhaps I can do something like exe normal gv as part of the popup ??

I wasn't thinking of vmenu - is that available at the cursor location ?  I will read up on it.

take care,
-m

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/29ce641c-b422-4023-99e5-1bf3eb84aaf0%40googlegroups.com.

No comments: