Oni: [RFC] Use `.config/oni` for configuration instead of `.oni`

Created on 8 Feb 2018  ยท  4Comments  ยท  Source: onivim/oni

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.

extensibility help wanted insider

Most helpful comment

Thanks @TalAmuyal, I'll take a stab at this!

All 4 comments

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!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bryphe picture bryphe  ยท  22Comments

bryphe picture bryphe  ยท  29Comments

hkupty picture hkupty  ยท  27Comments

ghost picture ghost  ยท  23Comments

jordwalke picture jordwalke  ยท  25Comments