Hi Bram,

On Sun, Mar 13, 2016 at 11:44 AM, Bram Moolenaar <[email protected]> wrote:
>
> Yegappan Lakshmanan wrote:
>
>> >> I am attaching a patch to add the ":cfilter" and ":lfilter" commands to
>> >> filter entries matching a pattern from the quickfix/location lists.
>> >> The :cfilter command creates a new quickfix list with entries matching
>> >> the specified regex pattern. When "!" is supplied, creates a list with
>> >> entries not matching the pattern.
>> >
>> > The help text is very brief.  Can you add a useful example?
>> >
>>
>> I have added additional description and examples to the help text.
>> I have also added tests for the new commands. The updated patch is
>> attached.
>
> Thanks.  The help could be a bit more specific about what happens.
>
> I guess the new quickfix list is added at the end and becomes the current
> one.
>

The new quickfix list is added right after the current quickfix list.
All the quickfix lists following the current one are freed. This is similar
to the vimgrep and helpgrep commands and the setqflist() function.

>
 > What happens after:
>         :colder 5
>         :cfilter
>

The new quickfix list is added after the first list and the last 4
quickfix lists are
freed.

- 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