on master help sign in
Add command names to command palette (#4071)
commit576c34f84e87f8eb1787d0b6b0940b19e965483b authornuid32 <91177333+nuid32@users.noreply.github.com> dateMon 3 Oct 2022, 19:56 (4 years ago) parent93f26a3
1 file changed+2−2
helix-term/src/commands.rs+2−2
helix-term/src/commands.rs+2−2
@@ -2427,11 +2427,11 @@ impl ui::menu::Item for MappableCommand {
24272427
24282428 match self {
24292429 MappableCommand::Typable { doc, name, .. } => match keymap.get(name as &String) {
2430− Some(bindings) => format!("{} ({})", doc, fmt_binding(bindings)).into(),
2430+ Some(bindings) => format!("{} ({}) [{}]", doc, fmt_binding(bindings), name).into(),
24312431 None => doc.as_str().into(),
24322432 },
24332433 MappableCommand::Static { doc, name, .. } => match keymap.get(*name) {
2434− Some(bindings) => format!("{} ({})", doc, fmt_binding(bindings)).into(),
2434+ Some(bindings) => format!("{} ({}) [{}]", doc, fmt_binding(bindings), name).into(),
24352435 None => (*doc).into(),
24362436 },
24372437 }