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

Adding support for a tool that will generate a json file of all of our Key_ macros. #1411

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Commits on Mar 20, 2024

  1. Refactor key definitions and constants as part of a project to generate

    a file listing all possible keycodes
    
    - Extracted key definition constants to `key_def_constants.h`
    - Moved base key definitions to `key_defs/base.h`
    - Moved legacy key definitions to `key_defs/legacy.h`
    - Updated `key_defs.h` to include the new headers and remove now redundant definitions
    - Ensured compatibility and organization of key definitions across the codebase
    obra committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    3d678b0 View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2024

  1. Add a first pass at keylist generation scripts

    - Added `extract-keys.sh` to extract argument-taking and non-argument-taking macros from key definitions.
    - Added `generate-macro-printer.sh` to generate a C++ program for printing macro values.
    obra committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    7bcbdd6 View commit details
    Browse the repository at this point in the history
  2. Refactor key_defs.h to try to pull our actual key definitions out into

    files ontaining only key definitions to make introspection and codegen
    around lists of keys more straightforward
    obra committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    eeb83fa View commit details
    Browse the repository at this point in the history
  3. Format code

    - Removed extra spaces for consistency in `key_defs/legacy.h`
    obra committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    b256ff4 View commit details
    Browse the repository at this point in the history