Add p format modifier for padding to width.

This commit is contained in:
nicm
2019-11-25 15:04:15 +00:00
parent 5d0504ee11
commit 1ebd8c1234
4 changed files with 52 additions and 3 deletions

6
tmux.1
View File

@ -4101,6 +4101,12 @@ appended or prepended to the string if the length has been trimmed, for example
will append
.Ql ...
if the pane title is more than five characters.
Similarly,
.Ql p
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.
.Pp
Prefixing a time variable with
.Ql t:\&