diff options
author | nicm <nicm> | 2016-01-31 09:54:46 +0000 |
---|---|---|
committer | nicm <nicm> | 2016-01-31 09:54:46 +0000 |
commit | 8028560f8260aeea6fee1206cf8704a0a5fc25f9 (patch) | |
tree | cbf01a3c38c1446915bb6a40b1ef99f36b54cfc2 /tmux.1 | |
parent | 225a384dbb5ffe5fc91c59ebcaeda1946b80ca69 (diff) | |
download | rtmux-8028560f8260aeea6fee1206cf8704a0a5fc25f9.tar.gz rtmux-8028560f8260aeea6fee1206cf8704a0a5fc25f9.tar.bz2 rtmux-8028560f8260aeea6fee1206cf8704a0a5fc25f9.zip |
Support negative trim values (#{=-10:pane_title}) to trim from the end,
suggested by Kevin Brubeck Unhammer.
Diffstat (limited to 'tmux.1')
-rw-r--r-- | tmux.1 | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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 |