lightning-jet icon indicating copy to clipboard operation
lightning-jet copied to clipboard

Replace config.json with config.yaml

Open Deekee62 opened this issue 3 years ago • 2 comments

This is a suggestion only :-)

Unfortunately the JSON file format doesn't allow any comments and I would like to suggest the use of YAML

WHY? I find it laboriously as a noob to keep separate notes and would appreciate it very much to have the possibility to comment things I change in config.json, as my old brain is not so fit anymore :-)

Especially the entries for "avoid" and "exclude" which are pubkeys.

Deekee62 avatar Dec 20 '21 15:12 Deekee62

I like the idea of having comments in the config file. Collecting feedback from the alpha-testing group.

itsneski avatar Dec 22 '21 00:12 itsneski

There's a library that allows reading json with comments: https://www.npmjs.com/package/comment-json

There's also JSON5.

Perhaps it's worth considering these options unless YAML is preferred.

cameri avatar Dec 31 '21 07:12 cameri