@pesala said in open bookmark folders as tab stack:
@penguinairlines When you manually save a session, it is saved in the User Data\Default\Sessions folder as a binary file. Backup these files to avoid losing work in the event of a hard drive failure.
When you exit Vivaldi, the current windows are also saved as a session, which will be reopened if you Startup with Last Session. This includes multiple windows, tabs, tiles, and tab stacks.
Sync is still work in progress. We have been waiting a long time for syncing of history, search engines, custom speed dial thumbnails, and sessions. Meanwhile, you can backup your entire profile folder.
I install Vivaldi as a Standalone version on an encrypted drive, and backup the entire drive. It takes a while, so it does not get done frequently.
Thank you for telling me about your use-case.
I did notice and comment about that directory by relative path, and it seems the automatic session saves are stored there as well (though it's unclear since it is saved in binary). They are named like "Session_#" and "Tabs_#" where # is a 17 digit integer, and it keeps 2 most recent copies. I mentioned also that the more recent (modify date) copy of the automatic session save is file locked, so I cannot observe it. I assume this is only while Vivaldi is open. Maybe this is not 2 most recent, but rather 2 profiles, since I have a work profile on this machine? I'd have to create a VM sandbox or portable version to test, if someone does not already know.
I think my next step in my migration will be to do similarly to what you have done, and attempt a restore from session state, then move over any state which did not move already. I may do this on a portable/standalone session since I am already mid-migration. It was easy enough though for me to open bookmarks as new tabs, then stack the tabs, just a tedious step that could probably be developed easily since a lot of tab stack features already exist, so this could be handled as a 2-step. In pseudo-code or command chain language, this might be like
Feature - open bookmark folders as tab stack (assuming box is checked in settings)
Check that selected folder does not contain nested folders
true - open all tabs in selected bookmark folder,
select recently opened tabs
create tab stack from selection
false - error tooltip/window to user "cannot create tab stack from bookmarks folder with additional nested folders"
That may be the best you will get from me, as I don't know C++, but hopefully it at least helps highlight the simplicity of the logic and why I think it could be a simple enhancement compared to many.