Skip to content

Commit 8d45c70

Browse files
the-mikedavisShekhinah Memmel
authored andcommitted
Include colons for typable commands in command palette (helix-editor#4495)
Before: Goto next buffer. [buffer-next] After: Goto next buffer. [:buffer-next]
1 parent 884700d commit 8d45c70

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
@@ -2483,8 +2483,8 @@ impl ui::menu::Item for MappableCommand {
24832483

24842484
match self {
24852485
MappableCommand::Typable { doc, name, .. } => match keymap.get(name as &String) {
2486-
Some(bindings) => format!("{} ({}) [{}]", doc, fmt_binding(bindings), name).into(),
2487-
None => format!("{} [{}]", doc, name).into(),
2486+
Some(bindings) => format!("{} ({}) [:{}]", doc, fmt_binding(bindings), name).into(),
2487+
None => format!("{} [:{}]", doc, name).into(),
24882488
},
24892489
MappableCommand::Static { doc, name, .. } => match keymap.get(*name) {
24902490
Some(bindings) => format!("{} ({}) [{}]", doc, fmt_binding(bindings), name).into(),

0 commit comments

Comments
 (0)