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

Feature Request: Unsaved Files Give Warning When Opening New Yarn Files #94

Open
tomdominer opened this issue Feb 6, 2019 · 5 comments

Comments

@tomdominer
Copy link

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.

@blurymind
Copy link
Collaborator

that is actually fairly easy to implement. I will pick it up if nobody is interested :)

blurymind added a commit that referenced this issue Feb 6, 2019
… that progress might be lost- whenever a fileis already opened - requested in #94
@blurymind
Copy link
Collaborator

implemented via dbf94c9
:)
please try from git

@Flyingvette
Copy link

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 :)

@blurymind
Copy link
Collaborator

blurymind commented Feb 6, 2019

@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

@blurymind
Copy link
Collaborator

blurymind commented Feb 8, 2019

@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.
c54dd56

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants