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

Try to extract common prefix for "+prefix" keymaps. #293

Open
a13 opened this issue May 14, 2021 · 3 comments
Open

Try to extract common prefix for "+prefix" keymaps. #293

a13 opened this issue May 14, 2021 · 3 comments

Comments

@a13
Copy link
Contributor

a13 commented May 14, 2021

If a prefix keymap contains only commands (including nested ones) with the same prefix (say, "projectile-"), optionally show it (possibly with a custom suffix) instead of "+prefix"

@justbur
Copy link
Owner

justbur commented Jun 1, 2021

You can name prefixes with the replacement options.

@a13
Copy link
Contributor Author

a13 commented Jun 1, 2021

You can name prefixes with the replacement options.

sure, but as I can see, you have to do it manually for every prefix, or you don't?

@justbur
Copy link
Owner

justbur commented Jun 21, 2021

sure, but as I can see, you have to do it manually for every prefix, or you don't?

yes that's correct. I think it would be more sensible to do this at the time the keys are bound, rather than dynamically through which-key.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants