From 07596633a2d95ff24de1a7a6b9df64534cd9e82e 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') 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