aboutsummaryrefslogtreecommitdiff
path: root/tmux.1
diff options
context:
space:
mode:
authornicm <nicm>2020-08-20 16:57:40 +0000
committernicm <nicm>2020-08-20 16:57:40 +0000
commitd0957529edcdd3f616d0361972dd819b8b4c29d0 (patch)
treea30518aa54db74949ce4a7cd4fa3c222816fb5fc /tmux.1
parentd8b6560cbfb5677223982e4b27be92b2fcd034df (diff)
downloadrtmux-d0957529edcdd3f616d0361972dd819b8b4c29d0.tar.gz
rtmux-d0957529edcdd3f616d0361972dd819b8b4c29d0.tar.bz2
rtmux-d0957529edcdd3f616d0361972dd819b8b4c29d0.zip
Add n: modifier to get length of a format, also automatically expand
variable name arguments again if they contain a #{.
Diffstat (limited to 'tmux.1')
-rw-r--r--tmux.13
1 files changed, 3 insertions, 0 deletions
diff --git a/tmux.1 b/tmux.1
index cd20c056..46fe1fa2 100644
--- a/tmux.1
+++ b/tmux.1
@@ -4574,6 +4574,9 @@ pads the string to a given width, for example
.Ql #{p10:pane_title}
will result in a width of at least 10 characters.
A positive width pads on the left, a negative on the right.
+.Ql n
+expands to the length of the variable, for example
+.Ql #{n:window_name} .
.Pp
Prefixing a time variable with
.Ql t:\&