Commit 66dc90655fcdeb0dda20a74919eac65362271bb3

Stefan Sperling 2020-02-15T17:11:59

document the new search feature in tog's diff view

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/tog/tog.1 b/tog/tog.1
index 1cca129..d891703 100644
--- a/tog/tog.1
+++ b/tog/tog.1
@@ -194,6 +194,15 @@ If the diff view was opened via the log view, move to the previous (younger)
 commit.
 .It Cm >, Full stop
 If the diff view was opened via the log view, move to the next (older) commit.
+.It Cm /
+Prompt for a search pattern and start searching for matching line.
+The search pattern is an extended regular expression.
+Regular expression syntax is documented in
+.Xr re_format 7 .
+.It Cm n
+Find the next line which matches the current search pattern.
+.It Cm N
+Find the previous line which matches the current search pattern.
 .El
 .It Cm blame Oo Fl c Ar commit Oc Oo Fl r Ar repository-path Oc Ar path
 Display line-by-line history of a file at the specified path.