on master help sign in
Include colons for typable commands in command palette (#4495)

Before: Goto next buffer. [buffer-next] After: Goto next buffer. [:buffer-next]

commitcefdface3ba6cc2ed60a34fc7115de245c1f58b3 authorMichael Davis <mcarsondavis@gmail.com> dateFri 28 Oct 2022, 07:42 (4 years ago) parent6752c7d
1 file changed+2−2
helix-term/src/commands.rs+2−2
helix-term/src/commands.rs+2−2
@@ -2443,8 +2443,8 @@ impl ui::menu::Item for MappableCommand {
24432443
24442444 match self {
24452445 MappableCommand::Typable { doc, name, .. } => match keymap.get(name as &String) {
2446− Some(bindings) => format!("{} ({}) [{}]", doc, fmt_binding(bindings), name).into(),
2447− None => format!("{} [{}]", doc, name).into(),
2446+ Some(bindings) => format!("{} ({}) [:{}]", doc, fmt_binding(bindings), name).into(),
2447+ None => format!("{} [:{}]", doc, name).into(),
24482448 },
24492449 MappableCommand::Static { doc, name, .. } => match keymap.get(*name) {
24502450 Some(bindings) => format!("{} ({}) [{}]", doc, fmt_binding(bindings), name).into(),