Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting labels for custom menus / commands? #1752

Open
sudormrfbin opened this issue Mar 5, 2022 Discussed in #1744 · 2 comments · May be fixed by #3958
Open

Setting labels for custom menus / commands? #1752

sudormrfbin opened this issue Mar 5, 2022 Discussed in #1744 · 2 comments · May be fixed by #3958
Labels
A-helix-term Area: Helix term improvements A-keymap Area: Keymap and keybindings C-enhancement Category: Improvements

Comments

@sudormrfbin
Copy link
Member

Discussed in #1744

Originally posted by @MattCheely March 4, 2022
I recently realized I can add my own menu entries to do things like create "sub-menus", but the labeling gets a bit awkward. As an example if I do something in my config file like:

[keys.normal.space]
"f" = { "f" = "file_picker", "s" = ":write", "c" = ":open ~/.config/helix/config.toml" }

I can use space f to get into file mode, but the f entry after pressing space has no label, and the c entry displays the open command, but it would be nice to make it say something like "Edit Helix config". Are either of those possible?

@alunyaka
Copy link

alunyaka commented Jun 15, 2023

Still no workaround on this?
I have a custom command for closing current buffer and would love to have a flavor text for it.

image

image

@brokenthorn
Copy link

brokenthorn commented Jan 16, 2024

TheAwiteb#1 has a solution...

The config would look like this:

[keys.normal.space]
"i: Toggle inline hints" = ":toggle lsp.display-inline-hints"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-helix-term Area: Helix term improvements A-keymap Area: Keymap and keybindings C-enhancement Category: Improvements
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants