open bookmark folders as tab stack
-
Let's say I have a window with a couple of open tabs and tab stack. Vivaldi will save the tabs to a folder and the tab stacks as a subfolder when doing "Bookmark all tabs" from the context menu.
Next, when I open the bookmarks panel, right-click on the folder and choose "Open in New Window", I only get the tabs back but not the tab stacks. There is in fact no indication that the tab stacks AKA subfolders are being ignored.
Is that configurable? Is it a bug?
-
-
My apologies to necro this, it's the first relevant result in my search for "vivaldi forum open bookmark folder in tab stack". For context, I'm currently going through a migration to move all of my settings and open tabs over to a new build of my OS, and although Vivaldi Sync has done it's best job to date in this regard, there is still more to be done in terms of relying on it as a backup tool.
@pesala said in open bookmark folders as tab stack:
@leggewie If you save the Tab Stack as a Session the reopened session will have the tabs stacked, and various other things like scroll position will be retrained too.
Okay, so are Sessions synced or can they be accessed or recovered from after a device dies, assuming no filesystem corruption? 5 years later, It doesn't seem to be a priority for Vivaldi Sync. I see you have mentioned automatic session saving in this thread, but I don't know how recoverable this is if there is an event where the OS can no longer be accessed but it's filesystem, or the backed up Vivaldi data directory, can. Bookmarks are represented in a file (see vivaldi://about/ for your path for those curious, and also Vivaldi Sync has handled bookmark sync properly for years), which leads to better backup and recovery options, especially since bookmarks file looks like a JSON object to me so it is easy to parse even if a file becomes partially corrupt. %PATH%/Sessions, on the other hand, has what appear to be binary files that are of course not human readable (though at least manual session saves are named), and even have file locks on the current versions. All of this is not ideal for backup and recovery strategies.
OP asked for ability to open a saved tab stack as a tab stack, rather than opening as independent tabs that then need a 2nd step to be re-stacked. I think it's a reasonable request.
Vivaldi provides options:
- Open in New Tab
- Open in Background Tab
- Open
- Open in New Window
- Open in Private Window
Open seems to behave just like Open in New Tab, with the exception of overwriting the current tab with the first bookmark in the folder. None of these, or any other options I see in the context menu (to reproduce - right-click bookmark folder that contains bookmarks in bookmarks pane) have the ability to re-open the stack as a stack.
I would personally like to see this functionality added, but I think it would be a bit redundant to replicate all 5 of these options with "as tab stack" appended, so perhaps it could be a new check box in "Bookmarks" section of Vivaldi settings that says "Open bookmark folders as Tab Stack" to give the user a Boolean choice about this behavior per profile. This would allow users to recover from crashes or machine failures, or have a simple migration path since it is easy to select all tabs and "Bookmark n selected tabs". (The same is true for "Save n selected tabs as Session", but I defer back to my questions about backing up or syncing Vivaldi Sessions). I think it also aligns well with the tab stack behavior to date, since most of these settings are handled in the Vivaldi Settings menu, per profile. Developer note - there would have to be a check that there are no nested folders in the current context, given that tab stacks only operate 1 layer deep.
Perhaps this functionality could even be made with command chains? I'm not an expert with them yet, but it seems possible, though this would only be a work-around compared to built-in functionality, especially as it comes to the current state of settings sync (my migration as of 3 days ago did not sync my command chains, so I'll need to recover and migrate those manually). I'm not sure
1 tech-oriented aside - Even though I encourage its development, I have experienced weirdness with some of Vivaldi's tab management, so I do have a bias against trusting sessions, and thus have not experimented as much with them to see if they will meet my needs. As a rule though, either when developing solutions or choosing the software I use, I tend to prefer object-oriented state management, as this makes the state easier to handle, whether that be for backup, restore, human or programmatic parsing, SCM, etc. It's a shame that I see sessions aren't being handled this way as I did my validation before this posting, as I think things like "scroll position" can be easily represented in an object structure as well as the other site metadata that we already expect from bookmark functionality. All this too, does not mention that the chromium bookmark standard is easily recognized and imported to another browser if needed, reducing lock-in. As cool as sessions are, bookmarks still seem to be the more reliable way to manage saved sessions. I hope to be proven wrong though, as automatic session saving is easier to manage than routinely dumping open tabs to bookmarks.
Please let me know if this feedback should go elsewhere. This topic Support & Troubleshooting / Vivaldi for Linux doesn't seem like the best place for an enhancement request.
-
@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.
-
@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.