nightTab icon indicating copy to clipboard operation
nightTab copied to clipboard

Sync settings via github Gists as alternative to browser extension setting sync

Open metruzanca opened this issue 4 years ago • 6 comments

Is your feature request related to a problem? Please describe. Using multiple workstations.

Describe the solution you'd like Add a section in the settings called Sync with a github gist OAuth login, which upon login would look for a gist called nightTabConfig.json (or similar), if it doesn't exist create one and then store a scoped OAuth token granting patch permission exclusively for that gist (the absolute minimum permission required). After that, should be easy enough to update the gist via the API when adding bookmarks/changing settings and when opening a new tab, (making sure to run this after everything has loaded as UX is important) check the api to see if there was an update.

(github api limits to 5k requests per hour, so it shouldn't be an shouldn't be an issue)

Describe alternatives you've considered For non developers, could look into doing a similar thing with google drive.

I can throw together a proof of concept if you'd like (once i read up on OAuth)

metruzanca avatar Jul 14 '20 14:07 metruzanca

There's a similar thing though not a browser extension, it is a VS Code extension that may be interesting to you https://marketplace.visualstudio.com/items?itemName=Shan.code-settings-sync https://github.com/shanalikhan/code-settings-sync

Excigma avatar Jul 15 '20 09:07 Excigma

There's a similar thing though not a browser extension, it is a VS Code extension that may be interesting to you https://marketplace.visualstudio.com/items?itemName=Shan.code-settings-sync https://github.com/shanalikhan/code-settings-sync

I'm actually already using that ;)

EDIT: Tho, I don't see how that's relevant, or do you mean for inspiration?

metruzanca avatar Jul 15 '20 09:07 metruzanca

I don't understand the need and requests for syncing in nightTab to be honest. If you don't mind expanding on your use case, why exactly do you need to sync your nightTab settings? I think a synced folder or any other way to transfer files between your machines that's convenient to you, should be enough.

Q-out avatar Jul 15 '20 10:07 Q-out

@metruzanca Thanks for this suggestions. I'm afraid a lot of this is beyond me so a proof of concept would be very welcome. 👍

This issue might be related to #93.

I don't understand the need and requests for syncing in nightTab to be honest. If you don't mind expanding on your use case, why exactly do you need to sync your nightTab settings?

I would also appreciate details use case from as many people as possible. I think I try to fill in some blanks too (these asre assumptions based on direct and indirect feedback):

  • Actors
    • Any
  • What the user want to do
    • Have a preferred new tab page with relevant bookmarks on all browsers used
  • The user's goal
    • Set up the new tab page with bookmarks and settings once and for that set up to be available on all browsers used

(Needs more fleshing out from feedback.)

zombieFox avatar Jul 20 '20 07:07 zombieFox

I've opened a PR https://github.com/zombieFox/nightTab/pull/227 which I hope solves this problem and will allow you to sync between devices. It's currently experimental but works. One concern is when updating from two devices at the same time, you'd have to do a page refresh to get the latest changes first (there are currently no time based checks on the data).

This is currently a self hosted solution but I would consider building a public sync server if there's enough demand.

deanbarrow avatar Dec 25 '20 13:12 deanbarrow

@zombieFox The add-on Tab-Session-Manager provides a lot of features for working with multiple workstations including saving automated backups and cloud syncing through google drive. Maybe it could be of some help?

TahsinTariq avatar May 19 '21 16:05 TahsinTariq