[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [feature request] Colouring matches in --result=grep outputs
From: |
Jason Hood |
Subject: |
Re: [feature request] Colouring matches in --result=grep outputs |
Date: |
Thu, 04 Jul 2013 16:57:31 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 |
On 3/07/2013 2:25, Leo Liu wrote:
> Thanks and it seems to work as expected. However,
>
> On 2013-06-28 17:13 +0800, Jason Hood wrote:
>> It only works with -g, whatever the output.
>
> Too restrictive and kills much of the usefulness of the feature.
Fine, call me out on my laziness. :) Done it properly, now (even
works with -P, and allows environment variable GTAGSCOLOR for -C).
Patch is slightly big for email, so grab it from my site:
http://global.adoxa.vze.com/color1.txt
It expects to be applied on top of the previous patch, and also fixes
some other things:
Tweaks convert.pl so the info version has actual cross-references, but
I only updated (and tweaked) global/manual.in. It translates
"@xref{tag,1,}" to "tag(1) (@pxref{tag})"; "@xref{tag,1,:}" to
"tag(1) (@pxref{Top,,,tag})"; and "@xref{tag,1,file:node}" to
"tag(1) (@pxref{node,,,file})".
Frees the regex in completion_tags. Adds '*' & '|' as regex characters.
Explicitly add --regexp to lid, since it apparently doesn't recognise
them, either. Use quote_shell for lid's pattern (quote_string escapes
all the regex characters).
Includes stdlib.h in libglibc/obstack.c - this removes warnings about
missing abort & exit. Adds casts to spawnvp in gtags-cscope/exec.c and
execvp in plugin-factory/exuberant-ctags.c - this removes warnings about
the argv type. I guess these only apply to Windows; I don't think
the first two should affect Unix, but the latter might.
--
Jason.
- Re: [feature request] Colouring matches in --result=grep outputs, Jason Hood, 2013/07/02
- Re: [feature request] Colouring matches in --result=grep outputs, Leo Liu, 2013/07/02
- Re: [feature request] Colouring matches in --result=grep outputs, Shigio YAMAGUCHI, 2013/07/03
- Re: [feature request] Colouring matches in --result=grep outputs,
Jason Hood <=
- Re: [feature request] Colouring matches in --result=grep outputs, Shigio YAMAGUCHI, 2013/07/05
- Re: [feature request] Colouring matches in --result=grep outputs, Shigio YAMAGUCHI, 2013/07/05
- Re: [feature request] Colouring matches in --result=grep outputs, Jason Hood, 2013/07/05
- Re: [feature request] Colouring matches in --result=grep outputs, Shigio YAMAGUCHI, 2013/07/05
- Re: [feature request] Colouring matches in --result=grep outputs, Jason Hood, 2013/07/09
- Re: [feature request] Colouring matches in --result=grep outputs, Shigio YAMAGUCHI, 2013/07/09
- Re: [feature request] Colouring matches in --result=grep outputs, Jason Hood, 2013/07/10
- Re: [feature request] Colouring matches in --result=grep outputs, Shigio YAMAGUCHI, 2013/07/10
- Re: [feature request] Colouring matches in --result=grep outputs, Jason Hood, 2013/07/10