ReDEnergy / SessionSync

SessionSync
Mozilla Public License 2.0
296 stars 31 forks source link

Keep auto saved sessions per day #28

Open rayman89 opened 6 years ago

rayman89 commented 6 years ago

I think It would be nice if you cold have the option to keep auto saved sessions from previous days. Like for example keep "x" amount of auto saved session of the the past "x" days in case something happens like you accidentally close a window full of tabs and you didn't realize till next day.

ReDEnergy commented 6 years ago

Right now all the rules apply at the same time so I suppose that may not be best option. I can change the rules to be on a day by day basis and that would mean slots will represents the maximum number of sessions per day, with a configurable number of days. Will try to do this for the next update. Thanks for the suggestion.

rayman89 commented 6 years ago

Thank you for having our suggestions in mind.

BTW Is it a typo when in history says "save interval (seconds)" should it say (minutes) or is seconds ok? Because I have it on 15 and on history I only see a session from 11.53 and a current session (12:45)

ReDEnergy commented 6 years ago

Those are actual seconds... but the date for the current session is from the start of the session. Same with the name. I can see why it may be misleading but right know I can't find a good solution for this.

rayman89 commented 6 years ago

Sorry to keep asking but then how do the 10 slots work? I thought auto saved session on slot 1 was saved at 15 seconds from opening; slot for session 2 at 30 seconds, slot for session 3 at 45 and so on.

Also what happens when the 10 slots are filled does the oldest one get replaced? if that's the case why there is a delete after 48 hs setting? if that's not the case there would be a gap of 2 days from the newest session and the previous one?

ReDEnergy commented 6 years ago

Probably not the best word chosen... The slots just represents the maximum number of saved browsing sessions kept in memory. So if you close the browser 12 times. Only the last 10 browsing sessions (or how many you set) will be visible there. If there are already 10 saved then the oldest one will be replaced when starting the browser again. Basically you will have maximum 10 saved browsing session, over a maximum duration set in the configuration. Example: If you set 1000 sessions and 480 hours... you will have all the browsing sessions for the last 480 hours with a hard limit of 1000 sessions.