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

[Feature Request] Add the support of Macros #1251

Open
Jefferycheng opened this issue Mar 13, 2023 · 7 comments
Open

[Feature Request] Add the support of Macros #1251

Jefferycheng opened this issue Mar 13, 2023 · 7 comments

Comments

@Jefferycheng
Copy link

Jefferycheng commented Mar 13, 2023

Description

Now, if I add the macros in the keymap.json, upload it to the configurator, and compile it, it doesn't work for my keyboard.

As #1250 mentioned, we wish to pass the macros object to compile as the first step.

And the next step, the web UI could set macros like https://keyboardlab.club. (Note: Jefferycheng is not associated with this site, and is just provided as an example of what the feature could look like.)

Thanks a lot!

@yanfali
Copy link
Collaborator

yanfali commented Mar 13, 2023

Wow, nice to see forks of qmk code with no attribution...

@tzarc
Copy link
Member

tzarc commented Mar 13, 2023

Yeah, and they're in breach of GPL by using QMK under the hood and not providing sources.

@qmk qmk deleted a comment from philvec Apr 3, 2024
@philvec
Copy link

philvec commented Apr 3, 2024

Good point, the authors seem to have closed the business, the keybooards are no longer available

  • but I found multiple YouTube review videos showing the unattributed fork and people commenting about how cool and useful it is - IMO this just shows spreading awareness of free software rights is more than needed...

In the topic of the feature request, I'm more than eager to help with the implementation, and I can start at once - the question is what do You mainteiners think about this particular approach?

  • defining macros as another key-value pair in keymap.json
  • defining macros similarily to keymaps or encoder_map

shall we? 👯‍♂️

@zvecr
Copy link
Member

zvecr commented Apr 3, 2024

what do You mainteiners think about this particular approach?

Redundant, as its not a keyboard feature so should not change info.json and we already have https://docs.qmk.fm/#/feature_macros?id=using-macros-in-json-keymaps.

@philvec
Copy link

philvec commented Apr 3, 2024

Redundant, as its not a keyboard feature so should not change info.json and we already have

ofc, I meant keymap.json - can we skip the keymap.c compatibility then?

Then it is mainly about implementing the sheer functionality, using the defined macros - which should rather be a PR to qmk_firmware - if I'm correct, can You add it and make a reference here?

As for the UI, are You working on anything particular @Jefferycheng ? If not, then I will develop to our fork https://github.com/arrowmechanics/qmk_configurator and we'll see what we can get

@zvecr
Copy link
Member

zvecr commented Apr 3, 2024

which should rather be a PR to qmk_firmware - if I'm correct, can You add it and make a reference here?

Theres no changes to make to the qmk_firmware repo. The functionality that needs to be implemented is purely client side and isolated to only this repo.

@cortex
Copy link

cortex commented Nov 20, 2024

#1376 at least preserves macros in the JSON

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants