You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This macro would then generate a default config file (from the source itself).
Additionally, this macro could also export a JSON Schema upon compile, which can then be linked with CI to be put somewhere (e.g. https://files.avdanos.org/compositor/schema.json).
Proposed Syntax
The first parameter in the macro contains the config item declarations.
A single item
Each item declaration contains:
a description
an identifier
a default value
{"An example item"identifier() => "Hello World"}
Support for config 'macros'
Custom key shortcut syntax:
{"Close active window"closeWindow() => (Alt+F4),"Switch to workspace `d`"
workspace(d) => (Ctrl+Logo+{d}),}
The text was updated successfully, but these errors were encountered:
Use a macro to declare Configuration entries:
This would automatically generate a struct to represent the raw values of this section,
which
serde-json
can then parse.Additionally, it could add some additional parsing unitl we reach the section's final struct.
This macro would then generate a default config file (from the source itself).
Additionally, this macro could also export a JSON Schema upon compile, which can then be linked with CI to be put somewhere (e.g.
https://files.avdanos.org/compositor/schema.json
).Proposed Syntax
The first parameter in the macro contains the config item declarations.
A single item
Each item declaration contains:
Support for config 'macros'
Custom key shortcut syntax:
The text was updated successfully, but these errors were encountered: