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

feat: prefer desc to cmd as the fallback label #253

Merged
merged 3 commits into from
May 4, 2022
Merged

feat: prefer desc to cmd as the fallback label #253

merged 3 commits into from
May 4, 2022

Conversation

xiyaowong
Copy link
Contributor

It obviously makes more sense to use the built-in description as the default label, which even eliminates a lot of repetition of require('which-key').register ...

@TheBlob42
Copy link

I use this branch since almost a week and have not faced any issues so far 🙂

I really like the idea of being able to register a description string for keybindings even without the which-key register function. That keeps the code more "portable" for non-which-key-users. Hope this gets merged soon

@b0o
Copy link

b0o commented Mar 27, 2022

This would be very helpful for Mapx.nvim's WhichKey integration. Once this is implemented, I can remove all WhichKey specific code which would improve my plugin's performance and make the code much cleaner.

@LeoNero
Copy link

LeoNero commented Apr 30, 2022

I migrated to Lua a few days ago and I've been using this branch, since it avoids duplicate work. No problems so far.

@folke folke merged commit bd4411a into folke:main May 4, 2022
@folke
Copy link
Owner

folke commented May 4, 2022

Totally makes sense. Thank you!

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

Successfully merging this pull request may close these issues.

None yet

5 participants