Snipplr — Online Sharing of Code Fragments

There is a new service which collects code fragments (I call them that to not confuse them with actual TextMate snippets.)

Each code fragment can be tagged which makes it possible to later do a simple tag based search.

The neat thing is that you can submit and retrieve code fragments from within TextMate. Watch their screencast for an example of this.

My only objection is that Get Snippet uses ⌃⌥⌘P as key equivalent, which is overloaded to do Preview for various markup languages and Show Web Preview (mostly for HTML) — but that is easy to change.

13 Comments

  1. 29 Jun 2006 | # Tyler Hall wrote…

    Hi. My name is Tyler – I'm the guy behind Snipplr. I just wanted to welcome everyone to the site and give a quick warning that it's not quite ready for primetime yet. We were expecting to do an official launch next week. But, hey, the more bug testers the better :)

  2. 29 Jun 2006 | # Allan Odgaard wrote…

    Sorry about that Tyler, I should probably have written and asked if you were all setup.

    As I could create an account and submit/retrieve snippets, I figured you were all ready to go :)

  3. 29 Jun 2006 | # Tyler Hall wrote…

    It's all good :) I'm happy to have the beta testers. Besides, I created Snipplr (and built it!) with TextMate in mind.

  4. 29 Jun 2006 | # Peter Cooper wrote…

    Others: http://www.bigbold.com/snippets/ (almost 2000 snippets) and http://www.textsnippets.com/ .. with source coloring (for Ruby) too.

  5. 30 Jun 2006 | # manu3000 wrote…

    I quote Snipplr website : "Create a new variable called "SNIPPLR_KEY" and set it's value to…"

    to what? What value should $SNIPPLR_KEY have ???

  6. 30 Jun 2006 | # Anonymous wrote…

    great idea! :) but there is a problem… the get snippet shortcut ist the same like the web-preview shortcut… can you chance it? thanks! :)

  7. 30 Jun 2006 | # Alex Hillman wrote…

    the $snipplr_key variable is provided for you once you create an account…essentially, this guid will hook your installation of textmate to YOUR snipplr account for posting snips (and, i presume, tracking requests)

  8. 03 Jul 2006 | # moshe weitzman wrote…

    pretty sweet. i admit though though that i when i want a fragment, i want it real fast. searching by tag is not my idea of fast. perhaps there could be a way to get your snippr fragments downloaded into textmate automatically. that way, they would be local.

    also, i would love to share real textmate snippits, and not just code fragments.

  9. 14 Jul 2006 | # luxuryluke wrote…

    This is one of the reasons i switched from skEdit (don't flame me) today to TextMate, right after seeing this feature on Tyler's site. btw, i know i got a large number of people on tyler's site, too. Sorry, but congratulations on a project well done. Thank you, too, TextMate!!!

  10. 16 Aug 2006 | # moshe weitzman wrote…

    is there some technical barrier in textmate that would prevent a bundle like this one from letting us share textmate snippits instead of static code fragments. now that would be cool.

  11. 16 Aug 2006 | # Allan Odgaard wrote…

    moshe: there are no technical barrier, but I think it would be hard to make a good interface as a bundle add-on.

    Sharing/publishing customizations is a desire among many users so I am considering ways to allow for that natively. But it is a little down the road.

  12. 16 Aug 2006 | # moshe weitzman wrote…

    oh, i never noticed the 'insert as snippit' output format. thanks.

  13. 09 May 2007 | # Tyler Hall wrote…

    moshe weitzman wrote: "perhaps there could be a way to get your snipplr fragments downloaded into textmate automatically. that way, they would be local."

    Well, nearly a later, I've added that option. The new Snipplr TextMate bundle syncs all of your snippets locally into TextMate's bundle menu. This lets you access them when you're offline. Forgive me for linking, but I've posted a better explanation of the features and my thoughts on the challenges I found in writing the new bundle here: http://blog.snipplr.com/2007/05/09/new-snipplr-textmate-bundle-beta/

Comments closed, you can use the mailing list for discussion.