qutebrowser / qutebrowser-extensions

Extension ideas (and at some point code) for qutebrowser
31 stars 1 forks source link

Enough State Export+Import to Build Live Sync #33

Open mentalisttraceur opened 1 year ago

mentalisttraceur commented 1 year ago

One of the biggest quality-of-life improvements for me in browsers is Real-Time Tab Sync.

I don't want Qutebrowser to get in the business of syncing state between devices. I have Syncthing for that and it does a great job.

But it would be wonderful if Qutebrowser one day had an extension that at least writes the relevant state to a folder. Ideally in a way that works well with Syncthing. So for example, writing a list of open URLs into a file would regularly cause Syncthing sync conflicts, but writing each open URL into its own file would be great for Syncthing.

It would be really nice, but probably not strictly necessary, for the extension to also watch that folder for changes (with f.e. inotify on Linux, etc) and open/close tabs accordingly (near as I can tell, it would be possible to design the state folder structure/contents so that watching for changes and syncing the opening of tabs could be done by an external program... I haven't exhaustively thought if syncing the closing of tabs could be handled reasonably well by an external program or not).

I intend to eventually write up a more concrete+complete design for this, but not sure when I'll have the time to do that.