How do you manage your gists on GitHub?

Viewed 36485

I love GitHub and their gist service, and that's why I'm keeping a lot of code snippets and even development notes as a gist on my GitHub account. It also makes it easy to share them with my colleagues.

The problem is that it doesn't scale!! The GitHub features for gist are primitive, and I have lots of gists there which make it really difficult to find some of my old gists. There's no search, no tagging, or anything.

Do you know any application that can handle this mess? I would like an application that could

  • Search my gists
  • List my gists by source type and date
  • Let me edit or copy them
  • Let me tag or at least edit description

I would love to see something like this, and I'm willing to pay even some bucks for it.

So how do you manage you gists on GitHub? Do you know any software?

There's one called drift written in MacRuby, but I couldn't compile it, and it hasn't been updated for a while.

11 Answers

It might be possible to clone your gists into a local folder (as pointed out by vgoff), then build some sort of personal website around this hosted on github pages... Using Jekyll/liquid you could tag and have categories... Embed using JavaScript, or use partials to inject code into the source ( using pygments to handle the syntax highlighting - or do it client side e.g using SyntaxHighlighter ). Perhaps use google search for the search component... or dynamically build up a json file, or use github's gist API ( http://develop.github.com/p/gist.html ) to pull in json for meta data and public repos...

You could possibly take this further and "demo" your HTML/CSS/JS gists using jsFiddle.net (you can create a new fiddle from a gist... See: http://doc.jsfiddle.net/use/gist_read.html )

I'm going to need a system like this for a project I'm working on ( http://getfiremonkey.com ) - it's for teaching teenagers HTML/CSS/JS in Firefox... And I'm thinking of building it on top of Github Pages/Gist/jsFiddle.net ... Free, open, interactive examples and branchable.

I've decided to setup a side project to focus on building a Gist CMS from anything I learn along the way...

https://github.com/chrisjacob/gist-cms

"Personal Gist CMS hosted on Github Pages. A code / content management system powered by Jekyll to tag, categorize and search your Gist archive. Keep all your Gist's organized in one repository; and show them off the the world with their own dedicated website."

Right now it's just an idea; so let me know if you're interested - and lend a hand if you can ^_^

If your snippets are Ruby snippets, I'd suggest boson. I use it to maintain my repository of 450+ ruby commands (snippets). I search my commands by name, description, usage, alias and other fields as well as sort by them.

Since my commands reside in local files, I can easily export to gists or install gists as boson commands. I can do all of the things you want to do except list by date and tag. Listing by date is trivial (timestamp of the file) and tags is something I'd like to add to boson as a plugin one day.

Related