mirror of https://github.com/helix-editor/helix
Include colons for typable commands in command palette (#4495)
Before: Goto next buffer. [buffer-next] After: Goto next buffer. [:buffer-next]pull/4481/head^2
parent
6752c7d347
commit
cefdface3b
|
@ -2443,8 +2443,8 @@ 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 => format!("{} [{}]", doc, name).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(),
|
||||||
|
|
Loading…
Reference in New Issue