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

[Enhancement] *Multi*dict #1

Merged
merged 6 commits into from
Mar 1, 2024
Merged

Conversation

elpekenin
Copy link

Expanding on your idea, by implementing logic to actually have multiple dictionaries, instead of 2 of them.

Everything gets merged into a single file, where the "global" configuration (formerly #define's) are now arrays having per-dict information.

This way we:

  • Avoid #ifdef MULTIBANK checks (code is the same regardless of the user having 1 dict or 8 of them)
  • Get rid of #define's with conditional values
  • No __has_include() hell. There will always be a single file
  • User can generate the file with qmk generate-autocorrect-data file0 file1 file2 (instead of having different commands for each)

Note: Maybe should have used 2 out of the 3 bits that were left unused, such that last one could be used for some other boolean, no idea what QMK contributors will think about that.

@github-actions github-actions bot added documentation Improvements or additions to documentation core cli python dd labels Jan 4, 2024
@780nm 780nm force-pushed the multibank-autocorrect branch 2 times, most recently from 88d04fc to b1a83d2 Compare March 1, 2024 18:20
@780nm 780nm merged commit cd90826 into 780nm:multibank-autocorrect Mar 1, 2024
2 of 5 checks passed
@elpekenin elpekenin deleted the multibank branch March 1, 2024 18:44
@elpekenin elpekenin restored the multibank branch March 19, 2024 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli core dd documentation Improvements or additions to documentation python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants