Hi,

On Sun, Dec 16, 2018 at 9:03 AM Daniel Hahler <[email protected]> wrote:
>
> Currently there appears to be only :colder/:cnewer to select a quickfix
> list, which uses relative counts (by number), and therefore it is not
> trivial to select a specific number (that you can get using getqflist({'id':
> qfid, 'nr': 1}), but you would have to get the current number and then do a
> relative :colder/:cnewer. I think it would be nice being able to select a
> specific list by id. Not sure if selection by number is useful, because this
> might rotate (there are only 10).
>

After seeing the reddit discussion about the Vim advent article on the colder
command (https://vimways.org/2018/colder-quickfix-lists/), I was thinking
about adding the support for jumping to a particular list in the stack.
I don't want to add a new command for this. I am looking for ways
to extend one of the existing :colder/:cnewer/:chistory commands to
support this. Can we extend the :chistory command to take a list number
in the stack?

>
> 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.

- 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.

Raspunde prin e-mail lui