issue-tracker icon indicating copy to clipboard operation
issue-tracker copied to clipboard

Support XDG for ~/.kite

Open yochem opened this issue 4 years ago • 2 comments

It would be nice to see Kite respect the XDG basedir specification. This will make sure users can choose where they want these 'dotfiles'. It also splits config, data and cache. This way, users can for example backup their config and periodically remove the cache. I have these files currently in my kite folder:

installid
kited_has_run
libraries/
logs/
logs/client.log
logs/copilot.log
settings.json
vim-plugin.json

These could be split like this:

XDG Default Files
XDG_CONFIG_HOME ~/.config Maybe settings.json and vim-plugin.json?
XDG_DATA_HOME ~/.local/share kited_has_run, installid and libraries/?
XDG_CACHE_HOME ~/.cache logs/ (these can also go in ~/Library/Logs on MacOS and an equivalent on Linux)

Thank you in advance!

yochem avatar May 28 '20 10:05 yochem

I saw you've added the linux label, could this be implemented for all *nix systems, including MacOS?

yochem avatar Jun 07 '20 16:06 yochem

Since it has been a year, are there workarounds available for now? Some environment variables would be lovely. That way we can use something like KIT_CONFIG_HOME=~/.config/kite. I could only find these for buildkite https://buildkite.com/docs/pipelines/environment-variables.

melvio avatar Sep 05 '21 10:09 melvio