summary refs log tree commit diff
path: root/bin/man1/qf.1
blob: 8828d723a0cc7a9289c6a0ceee2d61a7064fd60d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
.Dd June  2, 2022
.Dt QF 1
.Os
.
.Sh NAME
.Nm qf
.Nd grep pager
.
.Sh SYNOPSIS
.Nm Op Ar pattern
.
.Sh DESCRIPTION
.Nm
is a pager for
.Xr grep 1 ,
.Xr ag 1 ,
.Xr rg 1 ,
etc.\&
which allows
jumping to matches in
.Ev $EDITOR .
It parses any input
prefixed by path
and line number
separated by a colon
.Ql ":"
followed by either a colon
or a hyphen
.Ql "-" .
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
Open the currently selected line in
.Ev $EDITOR .
When the editor exits,
.Nm
resumes.
.It Ic {}
Jump between files.
.It Ic gG
Jump to first or last line.
.It Ic jk
Move to next or previous line.
.It Ic nN
Jump to next or previous match line.
.It Ic q
Exit.
.It Ic r
Refresh the display.
.El
.
.Sh EXAMPLES
.Dl $ ag -C open | qf
.Dl $ git grep -n open | qf
51 -0400'>2021-09-08Defer printing comment if line is blank or closing braceJune McEnroe 2021-09-08Up default min-repeat to 30 linesJune McEnroe 2021-09-08Handle dirty lines in git-commentJune McEnroe 2021-09-08Document and install git-commentJune McEnroe 2021-09-08Add repeat and all options to git-commentJune McEnroe 2021-09-08Add group threshold to git-commentJune McEnroe