aboutsummaryrefslogtreecommitdiff
path: root/tmux.1
diff options
context:
space:
mode:
authornicm <nicm>2020-03-31 16:53:23 +0000
committernicm <nicm>2020-03-31 16:53:23 +0000
commit2624edde46ad13995d4dd33f7d61fce74ac8f1ac (patch)
tree31439c477c877bddebd996f9d4c8b6d548f24a67 /tmux.1
parent2ca95840d16e2292d3560ec30f4f24dc9e2eedb2 (diff)
downloadrtmux-2624edde46ad13995d4dd33f7d61fce74ac8f1ac.tar.gz
rtmux-2624edde46ad13995d4dd33f7d61fce74ac8f1ac.tar.bz2
rtmux-2624edde46ad13995d4dd33f7d61fce74ac8f1ac.zip
Add non-regex search variants to avoid the performance cost for people
with large histories or long lines.
Diffstat (limited to 'tmux.1')
-rw-r--r--tmux.124
1 files changed, 23 insertions, 1 deletions
diff --git a/tmux.1 b/tmux.1
index 667242db..a3b2b0f8 100644
--- a/tmux.1
+++ b/tmux.1
@@ -1503,9 +1503,11 @@ The following commands are supported in copy mode:
.It Li "scroll-up" Ta "C-y" Ta "C-Up"
.It Li "search-again" Ta "n" Ta "n"
.It Li "search-backward <for>" Ta "?" Ta ""
-.It Li "search-forward <for>" Ta "/" Ta ""
.It Li "search-backward-incremental <for>" Ta "" Ta "C-r"
+.It Li "search-backward-text <for>" Ta "" Ta ""
+.It Li "search-forward <for>" Ta "/" Ta ""
.It Li "search-forward-incremental <for>" Ta "" Ta "C-s"
+.It Li "search-forward-text <for>" Ta "" Ta ""
.It Li "search-reverse" Ta "N" Ta "N"
.It Li "select-line" Ta "V" Ta ""
.It Li "select-word" Ta "" Ta ""
@@ -1514,6 +1516,26 @@ The following commands are supported in copy mode:
.It Li "top-line" Ta "H" Ta "M-R"
.El
.Pp
+The search commands come in several varieties:
+.Ql search-forward
+and
+.Ql search-backward
+search for a regular expression;
+the
+.Ql -text
+variants search for a plain text string rather than a regular expression;
+.Ql -incremental
+perform an incremental search and expect to be used with the
+.Fl i
+flag to the
+.Ic command-prompt
+command.
+.Ql search-again
+repeats the last search and
+.Ql search-reverse
+does the same but reverses the direction (forward becomes backward and backward
+becomes forward).
+.Pp
Copy commands may take an optional buffer prefix argument which is used
to generate the buffer name (the default is
.Ql buffer