Change how escaping is processed for formats so that ## and # can be

used in styles. Also add a 'w' format modifier for the width. From Chas
J Owens IV in GitHub issue 2389.
This commit is contained in:
nicm
2020-11-09 09:10:10 +00:00
parent 1326529f99
commit 61e55fa50d
3 changed files with 201 additions and 17 deletions

4
tmux.1
View File

@ -4591,7 +4591,9 @@ pads the string to a given width, for example
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
expands to the length of the variable and
.Ql w
to its width when displayed, for example
.Ql #{n:window_name} .
.Pp
Prefixing a time variable with