-
-
Notifications
You must be signed in to change notification settings - Fork 79
feat: allow for Name overrides in key picker #125
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
base: main
Are you sure you want to change the base?
Conversation
- the one you actually want has a symbol in the editor and the name tweaked - the one you probably don't want has a name change to hopefully show that it's not expected.
- Backspace is by far the more common search term and will now show this key (rather than just the keypad one)
✅ Deploy Preview for zmk-studio ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
(Also would solve #96 ) |
| "38": { "short": "9" }, | ||
| "39": { "short": "0" }, | ||
| "40": { "short": "Ret", "med": "Return" }, | ||
| "38": { "short": "9", "Name":"Keyboard 9 and Left Parenthesis"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "38": { "short": "9", "Name":"Keyboard 9 and Left Parenthesis"}, | |
| "38": { "short": "9", "name":"Keyboard 9 and Left Parenthesis" }, |
To keep the conventions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, makes sense - i'll add it as a TODO for myself if the PR gets up - good spot!
| "177": { "short": "000" }, | ||
| "224": { "short": "Ctrl", "med": "L Ctrl" }, | ||
| "225": { "short": "Shft", "med": "L Shft", "long": "L Shift" }, | ||
| "225": { "short": "⇧Shft", "med": "L Shft", "long": "L Shift" }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it could make sense to have another section for icons, it would be more flexible, like that it would also be possible to switch depending the OS (typically GUI is quite different).
Code change here is specifically to allow for overrides to be specified that would affect the display in the key picker - this duplicates (and would obsolete) #101, and fixes #100
In tracing through to make sure I understood the override system I also noticed that there was both
hid_usage_get_labelsandhid_usage_get_label- the singular function didn't appear to be used anywhere and had led me down a slightly wrong route when I was doing an initial read so have removed it.The last four commits are override updates I'm proposing:
Disclosure: wasn't sure best way to validate the changes/test and I've just been running a local loop with
npm run devso if there's a better way let me know.