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

Restore files per project #8

Closed
mpeterson2 opened this issue Sep 15, 2014 · 1 comment
Closed

Restore files per project #8

mpeterson2 opened this issue Sep 15, 2014 · 1 comment

Comments

@mpeterson2
Copy link
Owner

Currently, if you open a project and switch projects, you will get all the files you were just working on. This is probably not the most useful way to go about it. It would be nice to have it so that if the user opens a different project, that project should be restored to its previous state.

This may require saving more information. From what I'm thinking now, the saved json could contain an map of objects with the key of its directory path and its values will contain what is currently being stored. It would probably end up looking like this:

{
  'path/to/project': {
    files: [
    ],
  },
  'path/2/projec2t': {
    files: [
    ]
  }
}
@mpeterson2
Copy link
Owner Author

Another (easier to do) thought would be to have them saved in separate files. The path could be packageDirs/save-session/projects/path/to/project. Then the file wouldn't have to be read every time we want to save it. It could just be overwritten like it currently is.

It should be done this way.

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

No branches or pull requests

1 participant