Skip to content

Enough State Export+Import to Build Live Sync #515

@mentalisttraceur

Description

@mentalisttraceur

Checklist

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

I don't want Vieb 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 Vieb one day had a feature 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, 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.

Alternatives considered
Alternative 1: less sync-enabling -> sad face.
Alternative 2: sync support inside Vieb itself - > more code, complexity, errors to deal with, API+UI surface area, would require deciding on sync servers+protocols and either providing a sync server or having users self-host.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedHelp wanted with this issue, so PRs are encouraged!

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions