bgreenlee / sublime-github

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

File language not saved back to github after editing in ST2 #34

Closed minimaldesign closed 11 years ago

minimaldesign commented 11 years ago

I open a gist formatted in Textile on github, modify it, then save it.

When I look at the gist back on github, everything's fine beside for its language now set to Text instead of Textile. Is there any way to preserve the formatting?

I should mention it opens as a Textile file within ST2 just fine. It's just the saving that seems to go wrong.

Thanks!

bgreenlee commented 11 years ago

I can't seem to reproduce this. Are you giving the gist a file extension (.textile)?

bgreenlee commented 11 years ago

BTW, the GitHub API doesn't offer any way to set the file type except via the filename extension.

minimaldesign commented 11 years ago

OK. Got it. Turns out, I tried your package on a forked file from someone else and it didn't have a file name set. Once I added it, it saves fine. Thanks!

On Sun, Nov 18, 2012 at 11:54 PM, Brad Greenlee notifications@github.comwrote:

BTW, the GitHub API doesn't offer any way to set the file type except via the filename extension.

— Reply to this email directly or view it on GitHubhttps://github.com/bgreenlee/sublime-github/issues/34#issuecomment-10501366.