From 2cea92daa5d20ddc849b1ea3a565dd984f8dd85c Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Thu, 27 Oct 2022 20:06:32 -0500 Subject: [PATCH] Include colons for typable commands in command palette Before: Goto next buffer. [buffer-next] After: Goto next buffer. [:buffer-next] --- helix-term/src/commands.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 69870a279f3c..129c4dd51d6b 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -2432,8 +2432,8 @@ impl ui::menu::Item for MappableCommand { match self { MappableCommand::Typable { doc, name, .. } => match keymap.get(name as &String) { - Some(bindings) => format!("{} ({}) [{}]", doc, fmt_binding(bindings), name).into(), - None => format!("{} [{}]", doc, name).into(), + Some(bindings) => format!("{} ({}) [:{}]", doc, fmt_binding(bindings), name).into(), + None => format!("{} [:{}]", doc, name).into(), }, MappableCommand::Static { doc, name, .. } => match keymap.get(*name) { Some(bindings) => format!("{} ({}) [{}]", doc, fmt_binding(bindings), name).into(),