Skip to content
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

feat: allow for Name overrides in key picker #125

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

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

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
1 participant