mirror of
https://github.com/tmux/tmux.git
synced 2025-09-03 14:27:09 +00:00
Support negative trim values (#{=-10:pane_title}) to trim from the end,
suggested by Kevin Brubeck Unhammer.
This commit is contained in:
10
tmux.1
10
tmux.1
@ -3377,9 +3377,13 @@ if not.
|
||||
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.
|
||||
a number and a colon.
|
||||
Positive numbers count from the start of the string and negative from the end,
|
||||
so
|
||||
.Ql #{=5:pane_title}
|
||||
will include at most the first 5 characters of the pane title, or
|
||||
.Ql #{=-5:pane_title}
|
||||
the last 5 characters.
|
||||
Prefixing a time variable with
|
||||
.Ql t:
|
||||
will convert it to a string, so if
|
||||
|
Reference in New Issue
Block a user