bazed-editor / bazed

The baz editor
Apache License 2.0
26 stars 3 forks source link

Use cache_dir ($XDG_CACHE_HOME, etc) as location to store the temporary swp file when saving #37

Open elkowar opened 1 year ago

elkowar commented 1 year ago

Currently we're creating a .swp file in the files directory temporarily whilst saving. This should probably happen somewhere else, in a standardized place (i.e. /tmp/, or, probably preferrably, the cache directory). To identify that sort of dir in a cross-plattform manner, I propose using https://crates.io/crates/dirs