mbnuqw / sidebery

Firefox extension for managing tabs and bookmarks in sidebar.
MIT License
3.21k stars 162 forks source link

Sync Windows Across Browser Instance #1516

Open megamorphg opened 5 months ago

megamorphg commented 5 months ago

Description

I have a personal laptop and a work laptop with their own individual Firefox + Sidebery installed. In each instance, I have a single window that is titled "WORK" (using the window titler add-on) with hundreds of tabs organized and grouped per project/issue.

It becomes very tedious to "sync" the tabs to both instances, eventually leading to the issue that I have new, valuable, nested tabs in both instances based on work sessions and have to reopen them. The only way to easily "sync" them is exporting the snapshot from the source, downloading over the cloud to the destination, and then importing the snapshot and then opening the window. I imagine that many others have my same scenario and challenge for work and personal use cases.

Suggested idea:

  1. Allow marking windows for syncing in the Snapshot history viewer, also giving the window a title to be referenced across instances. This gets stored in every snapshot.
  2. "Sync windows" button on the viewer that looks across other backups in the cloud and attempts to replace any matching title windows from the source to the destination if destination windows are enabled for syncing.

Am open to any approach that would allow "syncing" of windows across instances. It effectively is just taking the snapshot of the window and completely replacing the said window. Having this automated would be even more awesome but may need to track more elements in the snapshot like which window is more recent.

Firefox will never have something like this and especially due to the dependency on tree tabs, it seems best to include this as a feature in Sidebery.

digitalsignalperson commented 5 months ago

Is there any possible hack to read/write snapshots from outside firefox? I tried reading the extensions sqlite database but couldn't see the snapshot data (though I can grep it from the file).

I wouldn't mind if there was a markdown file accessible in the local storage or sqlite database that an external script could then read/write or just use a file sync tool. Right now obviously we can manually export/import through the plugin, but ideally that could be automated.