From 3e6c29a0d0e43587289e46f38f2a2e18dc5778e4 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Thu, 2 Jun 2022 22:22:58 -0400 Subject: Do basic match highlighting --- bin/man1/qf.1 | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'bin/man1/qf.1') diff --git a/bin/man1/qf.1 b/bin/man1/qf.1 index 06676087..8828d723 100644 --- a/bin/man1/qf.1 +++ b/bin/man1/qf.1 @@ -7,7 +7,7 @@ .Nd grep pager . .Sh SYNOPSIS -.Nm +.Nm Op Ar pattern . .Sh DESCRIPTION .Nm @@ -31,6 +31,19 @@ It otherwise operates similar to .Xr less 1 . . .Pp +If +.Ar pattern +is given, +the first match on each line +will be highlighted. +The +.Ar pattern +is interpreted as +an extended regular expression +and is matched case-insensitively +unless it contains an uppercase letter. +. +.Pp The keys are as follows: .Bl -tag -width Ds .It Ic Enter @@ -49,6 +62,8 @@ Move to next or previous line. Jump to next or previous match line. .It Ic q Exit. +.It Ic r +Refresh the display. .El . .Sh EXAMPLES -- cgit 1.4.1