Hi there,
Recently I played with a terminal emulator called x11/alacritty, as I already tried it years ago I have an old config file that I used instead of starting from scratch, but of course at some point I found out some new features were missing.
So no other option than making a new config file from the one given by the package itself located in
And then that annoying feeling arrived ...
After every modification, alacritty complained about yaml syntax, even when uncommenting one line implies an error.
I installed py39-yamllint which helps to identify errors with yalm files, well it showed countless errors on a file that I barely touched yet (I did one change):
Most errors are:
I get these errors even with the file from the git repo
?!!? now I remember why I didn't want to switch to alacritty at that time, it was mostly because of that language yaml, a wrong indentation, space can introduce an error, years ago I had to rewrite/modify the whole config file (today it's almost 900 lines, lot of comments though) by hand to avoid the warnings, I don't know if my patience will be that effective this time ...
I found one parser online but is it really the only way to edit correctly this kind of file ?
How do you guys deal with yaml files? is there any trick to make it easier to use? or is it just about pain!
Recently I played with a terminal emulator called x11/alacritty, as I already tried it years ago I have an old config file that I used instead of starting from scratch, but of course at some point I found out some new features were missing.
So no other option than making a new config file from the one given by the package itself located in
/usr/local/share/examples/alacritty/alacritty.yml
, basically a simple cp
command cp /usr/local/share/examples/alacritty/alacritty.yml ~/.config/alacritty/
.And then that annoying feeling arrived ...
After every modification, alacritty complained about yaml syntax, even when uncommenting one line implies an error.
I installed py39-yamllint which helps to identify errors with yalm files, well it showed countless errors on a file that I barely touched yet (I did one change):
Bash:
~ % yamllint ~/.config/alacritty/alacritty.yml | grep error | wc -l
102
~ % yamllint ~/.config/alacritty/alacritty.yml | grep warning | wc -l
222
Most errors are:
Most warnings are:line too long (93 > 80 characters)
missing starting space in comment
I get these errors even with the file from the git repo
?!!? now I remember why I didn't want to switch to alacritty at that time, it was mostly because of that language yaml, a wrong indentation, space can introduce an error, years ago I had to rewrite/modify the whole config file (today it's almost 900 lines, lot of comments though) by hand to avoid the warnings, I don't know if my patience will be that effective this time ...
I found one parser online but is it really the only way to edit correctly this kind of file ?
How do you guys deal with yaml files? is there any trick to make it easier to use? or is it just about pain!