bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [feature request] Colouring matches in --result=grep outputs


From: Shigio YAMAGUCHI
Subject: Re: [feature request] Colouring matches in --result=grep outputs
Date: Thu, 11 Jul 2013 09:02:25 +0900

On Thu, 11 Jul 2013 01:09:27 +1000
Jason Hood <address@hidden> wrote:

> On 5/07/2013 15:11, Shigio YAMAGUCHI wrote:
> > How about making new environment variable GLOBAL_OPTIONS instead of
> > GTAGSCOLOR? It is similar to GREP_OPTIONS of grep(1). You can use
> >         $ export GLOBAL_OPTIONS='--path-style=shorter --basic-regexp 
> > --ignore-case'
> 
> Find attached a patch that implements both GLOBAL_OPTIONS (removing
> GTAGSTHROUGH and GTAGSCOLOR) and --color=never|always|auto (-C is the
> same as --color=auto).  Given the above example, I've also added
> -E,--ext-regexp, -m,--match-case and -S,--project to allow overriding of
> GLOBAL_OPTIONS, restoring defaults.

Thank you. This code will become a present to GLOBAL users.

Some comments:

[--ext-regexp]

It seems that POSIX grep has '--extended-regexp' option.
Is there any problem if I use the same option instead of '--ext-regexp'?

[GTAGSTHROUGH]
I would like to announce 'GTAGSTHROUGH is deprecated' and remove it about
one year after so that users might not be surprised.
-- 
Shigio YAMAGUCHI <address@hidden>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3



reply via email to

[Prev in Thread] Current Thread [Next in Thread]