bgreenlee / sublime-github

Sublime Text 2/3 plugin that provides a number of useful commands for GitHub.
MIT License
455 stars 92 forks source link

Connect file to gist? #17

Closed danielbrodin closed 11 years ago

danielbrodin commented 12 years ago

Is there any way to connect a file to a gist so anytime you change the file it's just to do a Update Gist?

I have my settings (and some more things) saved as a gist to be able to have the same settings wherever I am, but right now I have to open gist in editor, open my settings, copy and paste them in to the open gist, then update the gist.

bgreenlee commented 12 years ago

It's theoretically possible. I'm not sure what the UI would be for specifying that a file should be handled that way, though, since I don't think most people would want their gists auto-updating whenever they saved.

What's wrong with just opening the gist in your editor and running the GitHub: Update Gist command when you're ready to update?

danielbrodin commented 12 years ago

I wouldn't like an auto-update function either, just the possibility to open the file, edit it, and if I want do a Update Gist right away.

The feature would just be available if you open gist in editor and save the file which probably doesn't happen a lot (not for me atleast), so nothing wrong with copy/pasting really, just thought it would be a nice feature :)

bgreenlee commented 12 years ago

So someone else just opened up a similar issue (#18). See my suggestion to him here: https://github.com/bgreenlee/sublime-github/issues/18#issuecomment-5061969

Would that work for you?

anthonyringoet commented 11 years ago

When I try to update a file that is posted as a gist I always get Can't update: this doesn't appear to be a valid gist.. Is there something you need to do to keep the file linked to the gist?

bgreenlee commented 11 years ago

@anthonyringoet You have to open it from gist first, via GitHub: Open Gist in Editor

anthonyringoet commented 11 years ago

@bgreenlee Thanks!