Yegappan Lakshmanan wrote:
> Currently all the available quickfix commands and functions that parse
> text using 'erroformat' add the resulting entries to a quickfix list in the
> stack. There have been several requests in the past to add support for
> parsing text using 'erroformat' without modifying the quickfix lists in
> the stack. This is useful for Vim plugins that deal with quickfix lists.
> I am attaching a patch to add this feature.
>
> To parse text without modifying the quickfix lists, the getqflist() function
> can be used as shown below:
>
> echo getqflist({'text': "File10:10:Line10\nFile20:20:Line20"})
> or
> echo getqflist({'text': ["File10:10:Line10", "File10:20:Line20"]})
>
> The above call returns a dictionary where the 'items' key will contain
> all the parsed entries.
>
> The getloclist() function can also be used instead of getqflist().
Thanks, I'll include it.
This still uses the existing 'errorformat'. Would there be use in
passing another 'errorformat' for this?
--
How To Keep A Healthy Level Of Insanity:
10. Ask people what sex they are. Laugh hysterically after they answer.
/// Bram Moolenaar -- [email protected] -- 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 [email protected].
For more options, visit https://groups.google.com/d/optout.