aboutsummaryrefslogtreecommitdiff
path: root/tmux.1
diff options
context:
space:
mode:
authornicm <nicm>2017-05-29 18:06:34 +0000
committernicm <nicm>2017-05-29 18:06:34 +0000
commita2ace9da24491c46e704ce6120dcb7e6c9d21c20 (patch)
tree9727dbdab5ec81ddd11c7ec2ba281439a4b00c4f /tmux.1
parent12575014995582b30165d80efa1096eee7622a81 (diff)
downloadrtmux-a2ace9da24491c46e704ce6120dcb7e6c9d21c20.tar.gz
rtmux-a2ace9da24491c46e704ce6120dcb7e6c9d21c20.tar.bz2
rtmux-a2ace9da24491c46e704ce6120dcb7e6c9d21c20.zip
Add ||, && format operators and C: to search pane content.
Diffstat (limited to 'tmux.1')
-rw-r--r--tmux.122
1 files changed, 17 insertions, 5 deletions
diff --git a/tmux.1 b/tmux.1
index 1ba66da4..8110ae50 100644
--- a/tmux.1
+++ b/tmux.1
@@ -3430,7 +3430,7 @@ is enabled, or
.Ql no
if not.
.Pp
-Simple comparisons may be expressed by prefixing two comma-separated
+Comparisons may be expressed by prefixing two comma-separated
alternatives by
.Ql ==
or
@@ -3443,14 +3443,26 @@ will be replaced by
if running on
.Ql myhost ,
otherwise by
-.Ql 0.
+.Ql 0 .
An
.Ql m
-specifies a
+specifies an
.Xr fnmatch 3
-comparison - the first argument is the pattern and the second the string to
-compare. For example,
+comparison where the first argument is the pattern and the second the string to
+compare, for example
.Ql #{m:*foo*,#{host}} .
+.Ql ||
+and
+.Ql &&
+evaluate to true if either or both of two comma-separated alternatives are
+true, for example
+.Ql #{||,#{pane_in_mode},#{alternate_on}} .
+A
+.Ql C
+performs a search for an
+.Xr fnmatch 3
+pattern in the pane content and evaluates to zero if not found, or a line
+number if found.
.Pp
A limit may be placed on the length of the resultant string by prefixing it
by an