-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Keymap key display improvements #17
Comments
I think, instead of providing display_name and icons for built-in behaviors, I would prefer to provide a neutral and unique ID, such as |
This breaks the requirement that the frontend have no specific knowledge of the set of possible behaviors. We need to support folks building with third party/custom behaviors that aren't in ZMK main. That's the main reason we use the behavior metadata approach. |
Thanks for the explanation! |
Shifted keypresses should probably display the shifted symbol ($ for LS(4) and etc.). |
That is also planned, but will need host layout info to display properly |
Why not start with an assumption of US-QWERTY as they are configured today with that mapping anyway. All the scancodes mapped in ZMK config files are based on US-QWERTY. Support for other locales can come at a later stage. The remapping would then affect not only the display of the keys but also the scancode assignment (e.g. for Keypress behaviour). |
Currently, ZMK Studio doesn't incorporate the fetched behavior metadata to influence the rendering of each key in the keymap display, and just attempts to map any passed first binding parameter as a HID usage.
Ideally, we should leverage the behavior metadata to make attempts at rendering things differently, e.g. behaviors with no parameters we might be able to report a suggested "icon" from the backend and render that on the keys, bluetooth behavior with multiple parameters could show different icon for each first param (select vs clear) and render the second profile index as a number next to the icon?
Lots to explore how to try to do this both nicely and generically for pluggable behaviors.
The text was updated successfully, but these errors were encountered: