on master help sign in
Include colons for typable commands in command palette (#4495)
cefdfacMichael Davis
helix-term/src/commands.rs+2−2
@@ -2443,8 +2443,8 @@ impl ui::menu::Item for MappableCommand {
2443
2443
2444 match self {
2444 match self {
2445 MappableCommand::Typable { doc, name, .. } => match keymap.get(name as &String) {
2445 MappableCommand::Typable { doc, name, .. } => match keymap.get(name as &String) {
2446− Some(bindings) => format!("{} ({}) [{}]", doc, fmt_binding(bindings), name).into(),
2446+ Some(bindings) => format!("{} ({}) [:{}]", doc, fmt_binding(bindings), name).into(),
2447− None => format!("{} [{}]", doc, name).into(),
2447+ None => format!("{} [:{}]", doc, name).into(),
2448 },
2448 },
2449 MappableCommand::Static { doc, name, .. } => match keymap.get(*name) {
2449 MappableCommand::Static { doc, name, .. } => match keymap.get(*name) {
2450 Some(bindings) => format!("{} ({}) [{}]", doc, fmt_binding(bindings), name).into(),
2450 Some(bindings) => format!("{} ({}) [{}]", doc, fmt_binding(bindings), name).into(),