[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: |
Wed, 22 Jan 2014 02:40:33 +1000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 |
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 (marking
GTAGSTHROUGH as deprecated) and --color=never|always|auto (-C and --color
are the same as --color=auto) for 6.2.10 (based on my previous doswin.txt
patch, but I expect it should work for the original release; as with that
patch, I've only supplied manual.in, not any of the generated files, but
my site[1] has them). Given the above example, I've also added
-E,--extended-regexp, -m,--match-case and -S,--project to allow overriding
of GLOBAL_OPTIONS, restoring defaults.
For DOS and Windows (including Cygwin), GLOBAL_OPTIONS will translate
'~' to '=', to be compatible with COMMAND.COM (which doesn't allow equal
signs in variables).
Windows users wanting to build it themselves will still need ANSI32.dll
from ANSICON[2] for color support (my binaries come with it).
[1] http://global.adoxa.vze.com/
[2] http://ansicon.adoxa.vze.com/
--
Jason.
col-var.txt
Description: Text document
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [feature request] Colouring matches in --result=grep outputs,
Jason Hood <=