From c0ce21c393dc49b9e542aae1cb4862a8c7e2a5ec Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 20 Jan 2024 19:21:59 +0100 Subject: Add more color highlighting --- man/grab.1 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'man') diff --git a/man/grab.1 b/man/grab.1 index 0997702..e73307b 100644 --- a/man/grab.1 +++ b/man/grab.1 @@ -212,12 +212,18 @@ The keys are as follows: .Bl -tag -compact .It fn filenames prefixing any content line. +.It ma +text matched by a +.Sq g +command if and only if the +.Sq g +command was the final command in the pattern. .It se separators inserted between filenames and content lines. .El .Pp The default value is -.Sq fn=35,se=36 +.Sq fn=35,ma=01;31,se=36 .It Ev NO_COLOR Do not display any colored output when set to a non-empty string, even if the standard-output is a terminal. @@ -248,7 +254,7 @@ but only those which are being passed a property — searching all files in the current git-repository: .Pp -.Dl $ git grab 'x// g/\ebplaceholder\eb/' '*.vue' +.Dl $ git grab 'x// g/\ebplaceholder\eb/' '*.vue' .Pp Extract bibliographic references from .Xr mdoc 7 -- cgit v1.2.3