From 762cb174681c6572a495dcf598ed77a7cb78bf24 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 3 Apr 2021 22:12:52 +0100 Subject: [PATCH] special selection: show details in hint for SPC Signed-off-by: Ian Jackson --- templates/script.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/templates/script.ts b/templates/script.ts index 7b9dda52..35cfe3ad 100644 --- a/templates/script.ts +++ b/templates/script.ts @@ -342,11 +342,18 @@ function recompute_keybindings() { wrc: 'Predictable', }); if (special_count != null) { + let desc; + if (special_count == 0) { + desc = 'select bottommost'; + } else { + desc = `select ${special_count}`; + } + desc = `cancel ${desc}`; add_uo(null, { def_key: 'SPC', // won't match key event; we handle this ad-hoc kind: 'ClientExtra', opname: 'cancel-special', - desc: 'cancel special count', + desc: desc, wrc: 'Predictable', }); } -- 2.30.2