From: Ian Jackson Date: Sat, 3 Apr 2021 21:12:52 +0000 (+0100) Subject: special selection: show details in hint for SPC X-Git-Tag: otter-0.5.0~220 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=762cb174681c6572a495dcf598ed77a7cb78bf24;p=otter.git special selection: show details in hint for SPC Signed-off-by: Ian Jackson --- 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', }); }