Add length limit operator for formats.

This commit is contained in:
Nicholas Marriott
2013-08-03 21:06:38 +01:00
parent 7581762c8e
commit 84c22d053b
3 changed files with 41 additions and 7 deletions

6
tmux.1
View File

@ -3026,6 +3026,12 @@ will include the string
if the session is attached and the string
.Ql not attached
if it is unattached.
A limit may be placed on the length of the resultant string by prefixing it
by an
.Ql = ,
a number and a colon, so
.Ql #{=10:pane_title}
will include at most the first 10 characters of the pane title.
.Pp
The following variables are available, where appropriate:
.Bl -column "XXXXXXXXXXXXXXXXXXX" "XXXXX"