diff options
author | Michael Davis | 2022-10-28 12:42:40 +0000 |
---|---|---|
committer | GitHub | 2022-10-28 12:42:40 +0000 |
commit | cefdface3ba6cc2ed60a34fc7115de245c1f58b3 (patch) | |
tree | fc94a0cf12a7b61f0e8ead0632ad3ae1c37d3891 /helix-term | |
parent | 6752c7d3474289596c9e062f54beaf07011b6a40 (diff) |
Include colons for typable commands in command palette (#4495)
Before:
Goto next buffer. [buffer-next]
After:
Goto next buffer. [:buffer-next]
Diffstat (limited to 'helix-term')
-rw-r--r-- | helix-term/src/commands.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 48bd9e57..fca55b68 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -2443,8 +2443,8 @@ impl ui::menu::Item for MappableCommand { match self { MappableCommand::Typable { doc, name, .. } => match keymap.get(name as &String) { - Some(bindings) => format!("{} ({}) [{}]", doc, fmt_binding(bindings), name).into(), - None => format!("{} [{}]", doc, name).into(), + Some(bindings) => format!("{} ({}) [:{}]", doc, fmt_binding(bindings), name).into(), + None => format!("{} [:{}]", doc, name).into(), }, MappableCommand::Static { doc, name, .. } => match keymap.get(*name) { Some(bindings) => format!("{} ({}) [{}]", doc, fmt_binding(bindings), name).into(), |