Skip to content

Conversation

@tanant
Copy link

@tanant tanant commented Jan 14, 2025

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_labels and hid_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:

  • Parentheses/Bracket naming and showing [ ] instead of { }
  • shift keys get a left or right sided arrow for left/right shift
  • trying to make it clear that code 158 is not the return you're looking for
  • adding the word 'backspace' in the Name, so it's findable in the picker

Disclosure: wasn't sure best way to validate the changes/test and I've just been running a local loop with npm run dev so if there's a better way let me know.

 - 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)
@netlify
Copy link

netlify bot commented Jan 14, 2025

Deploy Preview for zmk-studio ready!

Name Link
🔨 Latest commit d048b12
🔍 Latest deploy log https://app.netlify.com/sites/zmk-studio/deploys/678689fb9141c900084cbb3a
😎 Deploy Preview https://deploy-preview-125.preview.zmk.studio
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@tanant
Copy link
Author

tanant commented Jan 16, 2025

(Also would solve #96 )

"38": { "short": "9" },
"39": { "short": "0" },
"40": { "short": "Ret", "med": "Return" },
"38": { "short": "9", "Name":"Keyboard 9 and Left Parenthesis"},
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"38": { "short": "9", "Name":"Keyboard 9 and Left Parenthesis"},
"38": { "short": "9", "name":"Keyboard 9 and Left Parenthesis" },

To keep the conventions

Copy link
Author

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" },
Copy link

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).

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.

Add better name for the { [ ( symbol

2 participants