phiresky / ripgrep-all

rga: ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz, etc.
Other
7.98k stars 172 forks source link

Add doc on config.jsonc location #231

Closed abelcha closed 3 months ago

abelcha commented 3 months ago

It would be nicer to use the XDG vars on mac too, its very uncommon to use ApplicationSupport for cli apps,

for retro compatibility we could just add a condition in project_dirs() : if theres a config file in $xdg it override the default OSX path

i can do the PR if you agree

phiresky commented 3 months ago

Thanks. I think changing the default location on macos should be considered a upstream question (in the directories-next crate that defines the paths), I don't know the considerations on macos so rga just does whatever directories-next thinks is correct.