Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants