Closed englmaxi closed 7 months ago
Hi there, thanks for the nice words. Your workaround with the CSS translations look super nice!
This was indeed intentional, see key (k)
description in the combo spec. That being said, I don't have a strong opinion on it so I am OK changing this to work this way. If you can run black
to fix the check and update the keymap spec to say that both (key
and combo's own) type
s apply I can merge, or if you don't want to bother setting up the toolchain I can do that myself soon.
To be honest, I found the workaround at the end while writing the PR description. Since this is indeed intentional, I'd leave the decision up to you.
Either way, I have executed black
and adapted the combo description.
Hi, while playing around with combos, I noticed that the
type
parameter assigned inraw_binding_map
is not set to CSS classes of combos. I don't know if this is intentional (and this would have some downsides), but I would have assumed that the type is applied everywhere where the binding is used.Example use case:
I use
type
to combine text and a glyph in some special cases:At the moment, the
type
is not applied to combos:But with this PR, it would be:
There is already a workaround by setting the style explicitly again for every combo:
I find the proposed changes more intuitive and concise, especially if the same binding is used more than once. But please feel free to close this if you like it that way.
By the way, good job with this tool; it's fantastic!!