> > On 30 Mar 2019, at 14.48, Bram Moolenaar (Vim Github Repository) > > <[email protected]> wrote: > > > > Something like this is in the todo list, in the context of text properties > > (which is also related to LSP). > > The details haven't been worked out yet. What I was thinking of was > > reporting the range of changed lines. Not the text before the change, since > > that would involve saving text until it has been dealt with (which may be > > never). Do you really need the old text, or just the range of lines that > > was changed recently? > > LSP needs a chronological list with contiguous ranges and new text > contents (“change events”), where every change event is with respect > to the previous event in the list. Looks a lot like undo information. > Any reasons why we couldn’t use (parts of) the undo system for this? > Diff for every sync seems a bit heavy, especially when performing a > request for every word typed, i.e. autocomplete that pops up all the > time or predictive input on mobile.
Well, if using the undo sync points, this might be possible. But then the text will only be provided when the event is triggered and not kept later. If it's sent out right away that would work. This kind of event would require more of the plugin, to keep track of outstanding updates. Might work. I thought Vim would have to keep track of which updates have been handled, but perhaps that's too complicated (esp. if there are multiple plugins active). -- "Hit any key to continue" is a lie. /// 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.
