From ac5045a00f1fee2ca94aef063e6a5a3d2efce3f1 Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 2 Nov 2020 08:21:30 +0000 Subject: Add numeric comparisons for formats, from teo_paul1 at yahoo dot com in GitHub issue 2442. --- tmux.1 | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'tmux.1') 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 -- cgit