aboutsummaryrefslogtreecommitdiff
path: root/man/grab.1
diff options
context:
space:
mode:
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