-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider to change/improve configfile discovery #123
Comments
Hi @netzego thanks for making an issue! Introducing I might be able to consider a system-wide location, but it would need to be cross-platform with Windows or I'd need to find a super compelling reason to break cross-platform compatibility there. |
@braydonk sure:
To use |
On "cross-platform compatibility" is |
On What you mention re putting the dotfile directly into It is a thing in Windows; it defaults to On the search upwards: Thanks for the explanation it makes more sense now, I think I can make this work in my upcoming revamp of config loading. |
No, that's not what i mentioned, did i? I did not wrote |
Sorry for the misunderstanding. I will be adding support for |
#122 makes also sense. So |
The work for this is done and released in v0.11.0 |
$PWD/.yamlfmt
$HOME/.yamlfmt
$XDG_CONFIG_HOME/yamlfmt/config
or.../yamlfmt/yamlfmt
(without a dot)/etc/yamlfmt/config
The finding algo should search upwards from the current working dir. This helps to prevents spamming
.yamlfmt
files all over the repo dirs. Without this feature it is very hard to track/change settings.Imho, dot files inside
$XDG_CONFIG_HOME
are not useful.A system wide place eg.
etc
would be nice.Thx for considering and your work.
The text was updated successfully, but these errors were encountered: