Prabir Shrestha wrote:
> Currently `TextChangedI` isn't triggered when the popup menu is
> visible. This means all autocomplete plugins have to use timer based
> hacks.
> Would it be possible to have a new event something like
> `TextChangedIEx` which is triggered regardless of popup menu being
> visible or not? This way I could use timer as fallback instead in
> [asyncomplete.vim](https://github.com/prabirshrestha/asyncomplete.vim).
> All other async completion plugins -
> [completor.vim](https://github.com/maralla/completor.vim),
> [deoplete](https://github.com/Shougo/deoplete.nvim),
> [ncm](https://github.com/roxma/nvim-completion-manager) also seems to
> use timer based hacks.
> I'm also writing a [language server plugin for
> vim](https://github.com/prabirshrestha/vim-lsp) and see a use case
> here to detect text document changes.
Sounds like a reasonable request. Whoevern uses the new event will be
responsible for working with the popup menu.
It's probably easier to trigger this event only when the popup menu is
visible. You can listen to both events if you like, or trigger
different code in each case.
--
MICHAEL PALIN PLAYED: 1ST SOLDIER WITH A KEEN INTEREST IN BIRDS, DENNIS, MR
DUCK (A VILLAGE CARPENTER WHO IS ALMOST KEENER THAN
ANYONE ELSE TO BURN WITCHES), THREE-HEADED KNIGHT, SIR
GALAHAD, KING OF SWAMP CASTLE, BROTHER MAYNARD'S ROOMATE
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- [email protected] -- 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 ///
--
--
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.