{"id":7856,"date":"2019-04-10T09:33:33","date_gmt":"2019-04-10T14:33:33","guid":{"rendered":"https:\/\/bobbeaty.com\/wp\/?p=7856"},"modified":"2019-04-10T10:02:44","modified_gmt":"2019-04-10T15:02:44","slug":"accessing-gists-from-the-desktop","status":"publish","type":"post","link":"https:\/\/bobbeaty.com\/wp\/archives\/7856","title":{"rendered":"Accessing Gists from the Desktop"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/bobbeaty.com\/wp\/wp-content\/uploads\/2011\/06\/GitHub.jpg\" alt=\"GitHub Source Hosting\" title=\"GitHub.jpg\" border=\"0\" width=\"125\" height=\"125\" style=\"float:right;\" \/><\/p>\n<p>This morning I was thinking about the snippet manager I saw on Twitter... and then I realized that Gists on GitHub are exactly that - and why not just check out the status of the Sublime Text 3 <a href=\"https:\/\/packagecontrol.io\/packages\/sublime-github\">plugin<\/a> that deals with Gists... and the Vim <a href=\"https:\/\/github.com\/mattn\/gist-vim\">plugin<\/a> to do something similar.<\/p>\n<p>I had to update the access token for the Sublime Text 3 <a href=\"https:\/\/packagecontrol.io\/packages\/sublime-github\">plugin<\/a>, and then it was working fine. But one thing I noticed was that the Gists showed up in the editor as <em>modified<\/em> files. While that's understandable if you realize the model for this is to read the Gist, and then paste it into the editor window, it's not really the workflow I expected to see.<\/p>\n<p>Additionally, the syntax highlighting wasn't being triggered, so the Gists all had the syntax type of 'Text' - which was really annoying... given that the extension was exactly what you'd need to trigger the syntax type of the file. So that wasn't as nice as I expected. But it still worked.<\/p>\n<p>Then I went to Vim and updated the Gist <a href=\"https:\/\/github.com\/mattn\/gist-vim\">plugin<\/a>, and that was interesting, but not as horrible as it could be. Still... it's a bunch of command-line steps, but it's OK. Again, there was another auth token from GitHub, which is nice, but that's about it.<\/p>\n<p>The difference is that when you load a Gist into a Vim buffer, it is not seen as <em>modified<\/em>, and the syntax highlighting is correct. So those are nice to see in Vim, and while it's not <em>amazing<\/em>, it is nice to see it done right.<\/p>\n<p>In the end, I'm glad to have updated these things - even if I really wish there was a nice macOS client like <a href=\"https:\/\/kapeli.com\/dash\">Dash<\/a> that worked with Gists.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This morning I was thinking about the snippet manager I saw on Twitter&#8230; and then I realized that Gists on GitHub are exactly that &#8211; and why not just check out the status of the Sublime Text 3 plugin that deals with Gists&#8230; and the Vim plugin to do something similar. I had to update [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-7856","post","type-post","status-publish","format-standard","hentry","category-coding"],"_links":{"self":[{"href":"https:\/\/bobbeaty.com\/wp\/wp-json\/wp\/v2\/posts\/7856","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bobbeaty.com\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bobbeaty.com\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bobbeaty.com\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bobbeaty.com\/wp\/wp-json\/wp\/v2\/comments?post=7856"}],"version-history":[{"count":1,"href":"https:\/\/bobbeaty.com\/wp\/wp-json\/wp\/v2\/posts\/7856\/revisions"}],"predecessor-version":[{"id":7857,"href":"https:\/\/bobbeaty.com\/wp\/wp-json\/wp\/v2\/posts\/7856\/revisions\/7857"}],"wp:attachment":[{"href":"https:\/\/bobbeaty.com\/wp\/wp-json\/wp\/v2\/media?parent=7856"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bobbeaty.com\/wp\/wp-json\/wp\/v2\/categories?post=7856"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bobbeaty.com\/wp\/wp-json\/wp\/v2\/tags?post=7856"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}