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: Jason Hood
Subject: Re: [feature request] Colouring matches in --result=grep outputs
Date: Thu, 11 Jul 2013 01:09:27 +1000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130307 Thunderbird/17.0.4

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.

-- 
Jason.

Attachment: color2.txt
Description: Text document


reply via email to

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