greatsuspender / thegreatsuspender

A chrome extension for suspending all tabs to free up memory
https://chrome.google.com/webstore/detail/the-great-suspender/klbibkeccnjlkjkiokjodocebajanakg/
GNU General Public License v2.0
5.03k stars 902 forks source link

Reload Open Windows in the order they have been open #760

Open LeeKumar2018 opened 5 years ago

LeeKumar2018 commented 5 years ago

My customer has weblinks organized in 10 different Chrome windows and the windows organized in a particular order on the taskbar. The Computer gets restarted every day and TGS is used to save the open websites and restore them after restart. Is there a way in Great Suspender to safe the order of the Chrome windows when saving the profile?

Or, is there a way to edit what TGS generates ?

deanoemcke commented 5 years ago

When you say, "TGS is used to save the open websites and restore them after restart." do you mean that you save the session with the TGS session management tool, and then once chrome has restarted, you restore the session via TGS again?

If i'm not correct in my assumptions above, then can you tell me what you have in chrome -> settings -> On start-up ? Most people use "Continue where I left off" which means that chrome will automatically restore the windows and tabs that were open when you last exited chrome. This process is outside of the control of this extension.

deanoemcke commented 5 years ago

Assuming that you are restoring tabs from the session manager, I'm still not sure that it is possible to implement what you are requesting without at least some manual work.

The way that windows shows items on the task bar is completely seperate from chrome, and there is no way for a chrome extension to access this information. Chrome keeps it's own order of the windows, essentially ordered by 'first opened'. It is possible that i could create an interface for manually reordering windows in a saved session, but this would involve manual work and wouldn't be updated automatically when windows are rearranged in the windows task bar.

LeeKumar2018 commented 5 years ago

"When you say, "TGS is used to save the open websites and restore them after restart." do you mean that you save the session with the TGS session management tool, and then once chrome has restarted, you restore the session via TGS again?" This is correct and exactly what we are doing.

"Continue where I left off" has been tried. Chrome reopened one of the Chrome windows, not the rest of the Chrome windows we had open at the time when I closed Chrome.

I don't know what TGS uses as a script or command file or ... . I was hoping, that there is a file that can be edited and put in order, so the windows open in the same order as they have been closed. That would be easier than an interface, I guess.

Anyway, thanks for the contribution you make with anything you already offer !

deanoemcke commented 5 years ago

I'm still not entirely clear what behaviour you are looking for. You said "...so the windows open in the same order as they have been closed". What do you mean by 'closed'? Why would you want to order windows by when they are closed?

Anyway, it's possible there is a work around for you. On the latest version (v7.x) you can export a saved session. And you can also reimport this session. This allows you to change the order of the windows in the exported text file and reimport it. TGS should restore windows in the order they are specified in the text file (note: windows are separated by a single blank line)

John-Gee commented 5 years ago

It is possible that i could create an interface for manually reordering windows in a saved session, but this would involve manual work

Please do add this feature.

I work with way too many windows and tabs, thanks to your extension allowing my limited memory to handle it, alas sometimes windows get closed and reopened, which mess up the order in the taskbar. I can easily fix that, but the session manager will only remember the order of opening windows, not how I ordered them in the taskbar, which means I will have to redo that every time I restore a session until I fix it by closing all windows and reopening them in the proper order. With many windows this is quite annoying to do :/

Thanks!