-
Notifications
You must be signed in to change notification settings - Fork 137
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
Save a local copy of gist for situation that cannot connect network #79
Comments
It would be possible to cache gists on to disk, but there would have to be a decision on whether to cache on opening a gist or caching all gists "all the time" Caching brings with it problems of staleness and of course takes up space |
The staleness is easy, in case we are connection to the internet, using the online version from gist ALL the time, just ignore and update the local cache. In offline mode, using cache then. |
Yes, that would get rid of staleness, but it would also annihilate the actual use of caching, since getting the gists is pretty slow even for a few gists. I'd be much more inclined to actually cache gists and use local files and check for new version when opening them or something similar. |
Yes, it's better! Especially you can update all items in gist into local. |
what about this plan?
p.s.:
|
The idea is genius. +1. |
Using ssh is a really bad Idea as the whole API is built around HTTPS and github tries to get people to use it. SSH needs credentials just like HTTPS so that is not a valid argument. Forcing the user to update gist for himself is totally redundant and defeats the purpose of this plugin. It would make more sense to cache only loaded files and then comparing timestamps when opening a cached file |
Merged with issue #16 @AeroCross said:
|
I use gisty set on cron in order to sync all my gists. However, it would be really awesome at least to be able to create a mapping between gist repos and Sublime Gist plugin. So far the best I came for syncing files back up with is zsh oneliner: cd $GISTY_DIR/91f354bfe4a4c9a82a46; git pull -q origin master; \
cp ~/.gitconfig .; git commit -v -a -e -m "$(date)" && git push origin master Plus, I have custom script which automatically pushes changes for choosen Sublime user settings files. |
hello guys, this is a really useful features that can be included in the plugin. guys, how about we pick this up and work it out together? |
Is it possible to save a copy of all gist in local? If the network is connected, using the one from gist. Otherwise we still have a copy in local and still can work.
The text was updated successfully, but these errors were encountered: