Open Naeddyr opened 1 year ago
@Naeddyr I think the problem is we are not properly stringifying the yaml document with proper indentation https://github.com/rajasegar/alacritty-themes/blob/5438488f67665640987bde3033851d4081d7531c/index.js#L98C25-L98C25
Trying out alacritty for the first time, and came across this; also first time configuring anything with YAML.
When alacritty-themes is run to change the configuration yaml-file, it deindents commented lines in the default alacritty.yaml you can get from here.
Example configuration:
is turned into:
The comments are indented before the
#
, so apparently whatever yaml-parser is being used by alacritty-themes removes the "superfluous" white-space before it, breaking the formatting of the commented example yaml-sections and breaking the configuration without apparent cause.I'm not sure where the issue really should be put, alacritty project (the comment indenting could be done differently) or here (the comment indenting is affecting this project and maybe there's a yaml flag that lets you keep all whitespace), but it's more likely someone will care about it here, so here you go.