Skip to content

Commit 6422ba1

Browse files
nuid64pathwave
authored andcommitted
Add command names to command palette (helix-editor#4071)
1 parent 839f725 commit 6422ba1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

helix-term/src/commands.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2434,11 +2434,11 @@ impl ui::menu::Item for MappableCommand {
24342434

24352435
match self {
24362436
MappableCommand::Typable { doc, name, .. } => match keymap.get(name as &String) {
2437-
Some(bindings) => format!("{} ({})", doc, fmt_binding(bindings)).into(),
2437+
Some(bindings) => format!("{} ({}) [{}]", doc, fmt_binding(bindings), name).into(),
24382438
None => doc.as_str().into(),
24392439
},
24402440
MappableCommand::Static { doc, name, .. } => match keymap.get(*name) {
2441-
Some(bindings) => format!("{} ({})", doc, fmt_binding(bindings)).into(),
2441+
Some(bindings) => format!("{} ({}) [{}]", doc, fmt_binding(bindings), name).into(),
24422442
None => (*doc).into(),
24432443
},
24442444
}

0 commit comments

Comments
 (0)