mirror of https://github.com/helix-editor/helix
Fix some commands not showing names in palette (#4223)
parent
a24fae3b3c
commit
7f75458e6f
|
@ -2426,11 +2426,11 @@ impl ui::menu::Item for MappableCommand {
|
||||||
match self {
|
match self {
|
||||||
MappableCommand::Typable { doc, name, .. } => match keymap.get(name as &String) {
|
MappableCommand::Typable { doc, name, .. } => match keymap.get(name as &String) {
|
||||||
Some(bindings) => format!("{} ({}) [{}]", doc, fmt_binding(bindings), name).into(),
|
Some(bindings) => format!("{} ({}) [{}]", doc, fmt_binding(bindings), name).into(),
|
||||||
None => doc.as_str().into(),
|
None => format!("{} [{}]", doc, name).into(),
|
||||||
},
|
},
|
||||||
MappableCommand::Static { doc, name, .. } => match keymap.get(*name) {
|
MappableCommand::Static { doc, name, .. } => match keymap.get(*name) {
|
||||||
Some(bindings) => format!("{} ({}) [{}]", doc, fmt_binding(bindings), name).into(),
|
Some(bindings) => format!("{} ({}) [{}]", doc, fmt_binding(bindings), name).into(),
|
||||||
None => (*doc).into(),
|
None => format!("{} [{}]", doc, name).into(),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue