Hi, On Tue, Jun 18, 2019 at 2:37 AM Paul Jolly <[email protected]> wrote: > > Is your feature request related something that is currently hard to do? > Please describe. > > Per https://groups.google.com/d/msg/vim_dev/aW2buOgZ6qI/fpxkp-V8AQAJ > > In https://github.com/leitzler/govim (master branch) Pontus is adding support > to govim for signs that correspond to quickfix entries. > > This is done by calling sign_place/sign_unplace as required to get the signs > for a buffer in the correct state. > > If there are lots of errors in a file, then there can be a large number of > calls to sign_place/sign_unplace made by govim in rapid succession. > > Describe the solution you'd like > > A function: > > sign_setlist({bfnr}, {list} [, {action}]) > > that sets the signs for buffer {bufnr} to {list}. {action} is similar to > setqflist in that the caller can specify whether to create, replace or add to > existing signs. >
Instead of adding a new function for placing multiple signs, what about modifying the existing sign_place() function to accept a List argument. Each list item is a dictionary specifying the attributes of a sign. We can do a similar change to the sign_unplace() function to remove a placed sign. Thinking about this some more, we should modify the existing sign_place() function to always accept a List argument. This will simplify the function. This won't be backward compatible. But the sign functions were recently added. So I am not sure how many plugins have started using the sign_place() function. - Yegappan > > Describe alternatives you've considered > > The only apparent alternative at the moment is to call sign_getplaced and > then make > the necessary calls to sign_place/sign_unplace; over a channel this becomes > expensive. > > Additional context > > n/a > -- -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/CAAW7x7mytPb34Xpn8or54SXSKmnZubZdUE16Fbn13BFnHb90qA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
