aboutsummaryrefslogtreecommitdiff
path: root/tmux.1
diff options
context:
space:
mode:
authornicm <nicm>2020-11-02 08:21:30 +0000
committernicm <nicm>2020-11-02 08:21:30 +0000
commitac5045a00f1fee2ca94aef063e6a5a3d2efce3f1 (patch)
tree57e3a352e410392c7a39d3d138a8548687cd1f91 /tmux.1
parent95841ba16acafa8c1a516712ad0f2b48e34357e6 (diff)
downloadrtmux-ac5045a00f1fee2ca94aef063e6a5a3d2efce3f1.tar.gz
rtmux-ac5045a00f1fee2ca94aef063e6a5a3d2efce3f1.tar.bz2
rtmux-ac5045a00f1fee2ca94aef063e6a5a3d2efce3f1.zip
Add numeric comparisons for formats, from teo_paul1 at yahoo dot com in
GitHub issue 2442.
Diffstat (limited to 'tmux.1')
-rw-r--r--tmux.112
1 files changed, 10 insertions, 2 deletions
diff --git a/tmux.1 b/tmux.1
index 955ce16e..3d58b32f 100644
--- a/tmux.1
+++ b/tmux.1
@@ -4544,7 +4544,7 @@ multiplication
.Ql * ,
division
.Ql / ,
-and modulus
+modulus
.Ql m
or
.Ql %
@@ -4553,7 +4553,15 @@ or
must be escaped as
.Ql %%
in formats which are also expanded by
-.Xr strftime 3 ) .
+.Xr strftime 3 )
+and numeric comparison operators
+.Ql == ,
+.Ql != ,
+.Ql < ,
+.Ql <= ,
+.Ql >
+and
+.Ql >= .
For example,
.Ql #{e|*|f|4:5.5,3}
multiplies 5.5 by 3 for a result with four decimal places and