Hi, On Sun, Dec 16, 2018 at 9:50 AM Yegappan Lakshmanan <[email protected]> wrote: > > Hi, > > On Sun, Dec 16, 2018 at 9:03 AM Daniel Hahler <[email protected]> > wrote: > > > > My use case / idea is to temporarily switch the lists for :cc/:ll (wrapped > > by a command to go to nearest entries according to the cursor position). > > For this specific use case it would be best if temporarily switching the > > current list would not be necessary in the first place, i.e. it would be > > good if :cc / :ll could be called on a non-current list - likely done best > > through a new function?! - but maybe also :[id]cc [count] could be used?! > > This way plugins could go to next/prev/specific entries from their list, > > which must not be the one currently being displayed in the quickfix window. > > > > Currently only the setqflist() and getqflist() functions use the quickfix > list identifier. The quickfix commands use only the list number in > the stack. Changing this will break backward compatibility. We can > add support for changing the current entry in a list using the > setqflist() function. >
Can you try the attached patch which extends the setqflist() and setloclist() functions to set the index of the current entry in a quickfix/location list? Thanks, Yegappan -- -- 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.
setidx.diff
Description: Binary data
