summaryrefslogtreecommitdiffstats
path: root/tmux.1
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2019-05-26 15:02:25 +0100
committerThomas Adam <thomas@xteddy.org>2019-05-26 15:02:25 +0100
commit2e84d1cf033adf8fe4b562b3d3caf390c15798a5 (patch)
tree4096754945bdd0bc97aae6e4c50604b342f7dee9 /tmux.1
parent9beb3eb59314534bb7fb24e3afcb8338ba343d71 (diff)
parent64310051694fd5c82ccbcff9fda6488ea2dcfb96 (diff)
Merge branch 'obsd-master'
Diffstat (limited to 'tmux.1')
-rw-r--r--tmux.111
1 files changed, 9 insertions, 2 deletions
diff --git a/tmux.1 b/tmux.1
index 927df8e4..ca54511f 100644
--- a/tmux.1
+++ b/tmux.1
@@ -3994,9 +3994,16 @@ a number and a colon.
Positive numbers count from the start of the string and negative from the end,
so
.Ql #{=5:pane_title}
-will include at most the first 5 characters of the pane title, or
+will include at most the first five characters of the pane title, or
.Ql #{=-5:pane_title}
-the last 5 characters.
+the last five characters.
+A suffix or prefix may be given as a second argument - if provided then it is
+appended or prepended to the string if the length has been trimmed, for example
+.Ql #{=/5/...:pane_title}
+will append
+.Ql ...
+if the pane title is more than five characters.
+.Pp
Prefixing a time variable with
.Ql t:
will convert it to a string, so if