summaryrefslogtreecommitdiffstats
path: root/tmux.1
diff options
context:
space:
mode:
authornicm <nicm>2013-10-10 11:50:20 +0000
committernicm <nicm>2013-10-10 11:50:20 +0000
commit40811eb8d45c1b6d93da2ebae6c4bc821d2b9836 (patch)
tree511ee536e73a2317ef3b5417bf849922ca33c120 /tmux.1
parent2756d127507cb939582adf2bbaf7be4cf5b711cd (diff)
Add length limit operator for formats.
Diffstat (limited to 'tmux.1')
-rw-r--r--tmux.16
1 files changed, 6 insertions, 0 deletions
diff --git a/tmux.1 b/tmux.1
index fe2b1765..1f886cf7 100644
--- a/tmux.1
+++ b/tmux.1
@@ -3024,6 +3024,12 @@ will include the string
if the session is attached and the string
.Ql not attached
if it is unattached.
+A limit may be placed on the length of the resultant string by prefixing it
+by an
+.Ql = ,
+a number and a colon, so
+.Ql #{=10:pane_title}
+will include at most the first 10 characters of the pane title.
.Pp
The following variables are available, where appropriate:
.Bl -column "XXXXXXXXXXXXXXXXXXX" "XXXXX"