Yarn
Yarn copied to clipboard
Feature Request: Unsaved Files Give Warning When Opening New Yarn Files
I've lost a fair bit of work but forgetting to manually save my yarn file and moving to work on another. It would be great if the editor warned you of unsaved changes when you select to open a new file.
that is actually fairly easy to implement. I will pick it up if nobody is interested :)
implemented via https://github.com/InfiniteAmmoInc/Yarn/commit/dbf94c97c02e29524f6d7d6fc0240d29970420f9 :) please try from git
If we don't have an autosave feature yet, it might be a good time to stick one in. Even just a single Autosave.json to the root directory every 15 minutes could be a lifesaver for someone.
You've been working really hard at this @blurymind. It's very appreciated :)
@Flyingvette can you open a new issue about it please :) It would help me with closing this one. Will look into it. It shouldnt be too hard to add either.
Lets discus how it will work there
@Flyingvette this is now in the latest electron version - you can enable automatic file saving by editing a json settings file that yarn editor creates when you close it. https://github.com/InfiniteAmmoInc/Yarn/commit/c54dd56ad9df2e9702d5db95dbe081030cc315dd
open yarn-electron and close it. Then edit
C:\Users\YOU\.yarn-story-editor.json
settings:{
autoSave:-1
}
to be
settings:{
autoSave:5
}
5 will make it auto save every 5 minutes
Later on I plan to expose these settings to a config gui