Cond and recomputing bindings #941
Unanswered
SupremeTechnopriest
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
What is the best way to recompute bindings after a condition change? My use case is that I have keyboards with different layouts and I want to be able to toggle between them. I made a little state management plugin that exposes
disabled
andenabled
functions and I would like to be able to do something like this:Is there a function I can call in my
halmak.toggle
function to instruct which-key to recompute bindings?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions