diff options
author | nuid32 | 2022-10-03 14:56:43 +0000 |
---|---|---|
committer | GitHub | 2022-10-03 14:56:43 +0000 |
commit | 576c34f84e87f8eb1787d0b6b0940b19e965483b (patch) | |
tree | 09f557beff391456e9ad0f70b98de87709d6d68e /helix-term | |
parent | 93f26a3048606704c6c16c80a0090fbae64eaf80 (diff) |
Add command names to command palette (#4071)
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 fc5c2063..3768ca3f 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -2427,11 +2427,11 @@ 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)).into(), + Some(bindings) => format!("{} ({}) [{}]", doc, fmt_binding(bindings), name).into(), None => doc.as_str().into(), }, MappableCommand::Static { doc, name, .. } => match keymap.get(*name) { - Some(bindings) => format!("{} ({})", doc, fmt_binding(bindings)).into(), + Some(bindings) => format!("{} ({}) [{}]", doc, fmt_binding(bindings), name).into(), None => (*doc).into(), }, } |