Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suggestion: Use github gist to synchronize/backup stylus configuration #813

Open
ackvf opened this issue Dec 5, 2019 · 13 comments
Open

Comments

@ackvf
Copy link

ackvf commented Dec 5, 2019

I normally use Dropbox to synchronize the Stylus configuration across all my devices, however, my current company blocks all storage related web services, so working on a new machine is a real pain (in the eye mostly).

VSCode Settings Sync uses gist for the same already and it has proven viable. As a bonus, it also keeps the change history.

@narcolepticinsomniac
Copy link
Member

We have a new auto-sync feature which should be available in the next month or so. It'll provide options for dropbox, gdrive, and onedrive, but that probably won't help much for your particular issue.

@eight04 hooked up the new sync feature. IIRC, he originally mentioned the possibility of adding Github as an option, but that hasn't happened as of yet. Not sure if that's something he might still plan on adding eventually, or if he decided against it for whatever reason.

@eight04
Copy link
Collaborator

eight04 commented Dec 8, 2019

The goal is a little different. @ackvf wants to backup his configuration to Github gist. The sync feature backup styles to cloud storage.

the possibility of adding Github as an option

It is possible to use a Github repo to store data. The only problem is that it is so slow compared to other services. The bandwidth limit is also lower.


Note that the pref is already synced with your Google/Firefox account if you log in to the browser.

@narcolepticinsomniac
Copy link
Member

The goal is a little different. (configuration vs styles)

Yeah, I guess I missed the main point here. I thought this about backup/sync in general, not just configuration. Prefs should really be included in backups and sync by default, not as a separate feature.

...Github repo... is so slow compared to other services. The bandwidth limit is also lower.

Well, if that's the case, it probably isn't even worthwhile.

@ackvf
Copy link
Author

ackvf commented Dec 11, 2019

Not sure about the differences between sync/backup you guys mentioned, but this is the one I use to recover in a new browser:
image
Is that not correct?

Also, how big the config usually is that the speed is a concern here? The file that is stored in my dropbox is 382 KB zipped, 2302 KB unzipped JSON. I guess gist rather accepts JSON than zip.

@narcolepticinsomniac
Copy link
Member

Not sure about the differences between sync/backup you guys mentioned

"Configuration" is open to interpretation. I suspected you meant styles, and 8 figured you meant "preferences". We don't currently include preferences in backups, or the new sync feature, which is yet to be released, but preferences can be synced separately via the browser sync feature. Eventually, the new "auto-sync" feature will replace the current manual Dropbox one.

Also, how big the config usually is that the speed is a concern here?

IDK what limitations 8's referring to specifically, but it's in relation to the new sync feature, which syncs styles individually, so they should all be relatively small. Github must just be slower in general.

@ackvf
Copy link
Author

ackvf commented Dec 11, 2019

preferences can be synced separately via the browser sync feature

@narcolepticinsomniac I am still no smarter, I think I am doing it wrong and missing some core feature. :)

Basically, when I signed in to the Chrome on the new company computer, all my extensions got installed, but there are no installed styles in /manage.html. On my other computer, I would follow Backup / Import / Dropbox Import which would fetch the styles that I installed and backed up previously, together with my preferences (did I use the right term now?). Is that right, or is there an easier way which doesn't require a storage service and is automatic via signing in the Chrome Sync?

Sorry to bother you, but I am really confused and perhaps I can avoid the storage service altogether, which would solve my problems.

@narcolepticinsomniac
Copy link
Member

Think of prefs like any toggles you may have flipped in options, or various other checkboxes in the UI. Those should be synced via the built-in browser sync. Browser sync has a size restriction of 100kb, and various other limitations which make it useless for syncing styles. Syncing styles requires a cloud service.

@disco0
Copy link

disco0 commented Feb 7, 2020

Another gist sync implementation that's a little closer to Stylish is Snippets—its basically the snippets pane in DevTools with an extended feature set, most importantly sync via gist API (its also a great javascript complement to Stylish).

@deefdragon
Copy link

Is there any chance that it could be linked to a git repo as a whole?
It would be really cool to be able to fork etc, and or edit via
It would also be nice if it could be detached from github, so someone could self host it, thus the idea of a git repo vs github gist.

@eight04
Copy link
Collaborator

eight04 commented Mar 7, 2020

@deef0000dragon1 Since you are asking a different feature, please open a new issue to summarize your request.

@ackvf
Copy link
Author

ackvf commented Mar 9, 2020

@deef0000dragon1 BTW, github's gists are really just git repositories, you can check both out locally. You can even checkout gist and push it into a git remote. Gist just doesn't use folders.

@rxliuli
Copy link

rxliuli commented Apr 18, 2020

Is there any progress in using OneDrive's sync feature now?

@NSExceptional
Copy link

+1, I also want to use Gist to sync my configuration and styles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants