aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornicm <nicm>2018-05-28 11:45:26 +0000
committernicm <nicm>2018-05-28 11:45:26 +0000
commitb602c1fb9a9c12ce9876e21e28ddf7ad8b6556e6 (patch)
tree7765075504d1603f3c0ec396d20660f9918ba0f1
parentb9a6162d2f9bea63c3ad421e9c3969eea2852b00 (diff)
downloadrtmux-b602c1fb9a9c12ce9876e21e28ddf7ad8b6556e6.tar.gz
rtmux-b602c1fb9a9c12ce9876e21e28ddf7ad8b6556e6.tar.bz2
rtmux-b602c1fb9a9c12ce9876e21e28ddf7ad8b6556e6.zip
Document escaping inside conditionals, from "sadie-parayno" in GitHub
issue 1359.
-rw-r--r--tmux.115
1 files changed, 15 insertions, 0 deletions
diff --git a/tmux.1 b/tmux.1
index ee50a9fa..f9d7cb98 100644
--- a/tmux.1
+++ b/tmux.1
@@ -3574,6 +3574,21 @@ if
is enabled, or
.Ql no
if not.
+Conditionals can be nested arbitrarily.
+Inside a conditional,
+.Ql \&,
+and
+.Ql }
+must be escaped as
+.Ql #,
+and
+.Ql #} ,
+unless they are part of a
+.Ql #{...}
+replacement. For example:
+.Bd -literal -offset indent
+#{?pane_in_mode,#[fg=white#,bg=red],#[fg=red#,bg=white]}#W .
+.Ed
.Pp
Comparisons may be expressed by prefixing two comma-separated
alternatives by