raphamorim / rio

A hardware-accelerated GPU terminal emulator focusing to run in desktops and browsers.
https://raphamorim.io/rio
MIT License
3.21k stars 102 forks source link

Add jsonschema for config.toml #310

Open FlyinPancake opened 8 months ago

FlyinPancake commented 8 months ago

I'd like to have a schema for the configuration file so it's possible to have intellisense help with the config file.

The documentation is here https://www.schemastore.org/json/

raphamorim commented 8 months ago

That's a good idea, is this something you would like to contribute with? Probably will need to follow the changes like in this PR https://github.com/SchemaStore/schemastore/pull/3214/files

Marking this issue as wishlist

LaurentFough commented 8 months ago

On it (as in: already started). Unless someone beats me to it first.

LaurentFough commented 8 months ago

On it (as in: already started). Unless someone beats me to it first.

Ok — pretty sure I've got the schema done.

Giving it a once-over for any bugs, or if I've missed any configuration options. I think I may have to clean up the sub-sections and some arrays, but validation works as expected for now.

More to come. I'll pop the schema in the repo/fork shortly. (see below)

Update: