aboutsummaryrefslogtreecommitdiff
path: root/man/grab.1
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-01-20 19:21:59 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-01-20 19:21:59 +0100
commitc0ce21c393dc49b9e542aae1cb4862a8c7e2a5ec (patch)
tree427277c724dbc4a9885c1cc1736a4c7c5ec5a1aa /man/grab.1
parent99a3838242604a4cc888ea7f5019207cfb1d003a (diff)
Add more color highlighting
Diffstat (limited to 'man/grab.1')
-rw-r--r--man/grab.110
1 files changed, 8 insertions, 2 deletions
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/<hb\-form\-text.+?>/ g/\ebplaceholder\eb/' '*.vue'
+.Dl $ git grab 'x/<hb\-form\-text.*?>/ g/\ebplaceholder\eb/' '*.vue'
.Pp
Extract bibliographic references from
.Xr mdoc 7