TextMate snippets importing
Submitted by Monday, 13 February, 2006 - 07:36
on
SuperAbbrevs is a plugin that has functionality similar to Textmate's and Eclipse's to paste a template with placeholders that you can tab through. Textmate supplies a lot of nice defaults.
Textmate is OS X only, so I wrote a command line Cocoa tool to convert binary plists to xml plists, which I then batch run against the snippet files I want.
Then I modified SuperAbbrevs to have an import option, which takes a directory and imports all .xml or .plist files it finds there, converting $0 endings to $end endings.
If anyone would like to polish this into something more end-user usable, I'd be happy to email the code. For my purposes it has already consumed far more time than I wanted.
Textmate is OS X only, so I wrote a command line Cocoa tool to convert binary plists to xml plists, which I then batch run against the snippet files I want.
Then I modified SuperAbbrevs to have an import option, which takes a directory and imports all .xml or .plist files it finds there, converting $0 endings to $end endings.
If anyone would like to polish this into something more end-user usable, I'd be happy to email the code. For my purposes it has already consumed far more time than I wanted.