I wrote:

> Patch 7.4.2244
> Problem:    Adding pattern to ":oldfiles" is not a generic solution.
> Solution:   Add the ":filter /pat/ cmd" command modifier.  Only works for some
>             commands right now.
> Files:      src/structs.h, src/ex_docmd.c, src/ex_cmds.h, src/message.c,
>             src/proto/message.pro, runtime/doc/starting.txt,
>             runtime/doc/various.txt, src/testdir/test_viminfo.vim,
>             src/testdir/test_alot.vim, src/testdir/test_filter_cmd.vim,
>             src/Makefile

Note that this is incomplete.  Many commands output messages not as
whole lines but pieces at a time.  This requires filtering in many
places.  Or perhaps buffering the output until a line is complete.
Both are not so easy.

I do think that this method of filtering is better, since adding the
pattern after the command doesn't work for commands that already take an
argument.

-- 
hundred-and-one symptoms of being an internet addict:
59. Your wife says communication is important in a marriage...so you buy
    another computer and install a second phone line so the two of you can
    chat.

 /// Bram Moolenaar -- b...@moolenaar.net -- 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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui