Skip to content

Commit

Permalink
Include colons for typable commands in command palette (helix-editor#…
Browse files Browse the repository at this point in the history
…4495)

Before:

    Goto next buffer. [buffer-next]

After:

    Goto next buffer. [:buffer-next]
  • Loading branch information
the-mikedavis authored and pathwave committed Nov 4, 2022
1 parent afb3e14 commit 03412d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helix-term/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2450,8 +2450,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(),
Expand Down

0 comments on commit 03412d3

Please sign in to comment.