views:

1741

answers:

6

I'm looking around for a local code snippet storage solution for my Mac. I've run into a for-pay solution called "code collector", but I'm being cheap.

Sure, I could hack up a nest of scripts based around "grep", or maybe build a funky database solution, but I'd like someone else to take the work of said solutions. ;)

+3  A: 

Perhaps a local wiki? You can store, search, edit, and organise everything locally.

I use ikiwiki which is nice because:

  • the whole wiki can be stored in a real source control system (I've set mine up with Git)
  • ikiwiki generates static html pages instead of serving all content dynamically, so you don't need to have a web server running just to read your wiki
  • you can edit your wiki with your favourite text editor and commit changes using your SCM (and then ikiwiki updates the static pages on a post-commit hook)
  • ikiwiki uses Markdown by default, which we're all familiar with now

Ikiwiki is very low overhead because at its core, it's just a script that takes a bunch of Markdown files in directory A, and creates a corresponding bunch of HTML files in directory B.

Greg Hewgill
I have considered that, but I'm kinda shying away from the management overhead with a wiki. Not that I'm 100% ruling it out, mind you.
Paul Nathan
+2  A: 

Code Collector also has a free version.

Franci Penov
Nifty.Not sure I like the lack of "export to text file" though. Hm. I'll have to muck with it.
Paul Nathan
A: 

You can try Snippely which is an Adobe Air App

Tom
A: 

I use Schnippselchen Pro (weird name I know) it's free, updated, great developer and an awesome app.

Schnippselchen Pro

![alt text][2]

A: 

Try Snippet

+1  A: 

Not to turn this discussion into a bunch of ads but we're also making the Snippets app which happens to be a close match to your requirements http://snippetsapp.com

Stream