Add n: modifier to get length of a format, also automatically expand

variable name arguments again if they contain a #{.
This commit is contained in:
nicm
2020-08-20 16:57:40 +00:00
parent d8b6560cbf
commit d0957529ed
2 changed files with 29 additions and 11 deletions

3
tmux.1
View File

@ -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:\&