Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
elkowar opened this issue Dec 22, 2022 · 0 comments
Labels
topic-core Things related to the editor core

Comments

@elkowar
Copy link
Contributor

elkowar commented Dec 22, 2022

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

@elkowar elkowar converted this from a draft issue Dec 22, 2022
@elkowar elkowar added the topic-core Things related to the editor core label Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic-core Things related to the editor core
Projects
Status: Todo
Development

No branches or pull requests

1 participant