Currently oni uses the ~/.oni folder to store local configuration.
While this is a common model to use, these days many providers use the ~/.config/oni model instead.
This avoids cluttering of the home folder while also organizing all local configuration files, as you can see electron even creates one by default:
~ โฏโฏโฏ tree .config/oni
.config/oni
โโโ Cache
โย ย โโโ data_0
โย ย โโโ data_1
โย ย โโโ data_2
โย ย โโโ data_3
โย ย โโโ index
โโโ GPUCache
โย ย โโโ data_0
โย ย โโโ data_1
โย ย โโโ data_2
โย ย โโโ data_3
โย ย โโโ index
โโโ Local Storage
โย ย โโโ chrome-devtools_devtools_0.localstorage
โย ย โโโ chrome-devtools_devtools_0.localstorage-journal
โโโ Preferences
โโโ Settings
3 directories, 14 files
This would also unify both configuration folders.
As far as I know, this is also how Neovim works, so makes even more sense to me to do it this way.
๐ - makes sense to me too!
That is not exactly correct (though I do like the idea).
You describe the XDG Base Directory Specification which requires things like cache to be in a seperate dir.
It seems to be implemented by this package so it might be easy to implement compliantly (I think it supports Windows as well).
Thanks @TalAmuyal, I'll take a stab at this!
Most helpful comment
Thanks @TalAmuyal, I'll take a stab at this!