[TxMt] Combining snippets and commands?
Dr. Drang
drdrang at gmail.com
Tue Feb 21 22:47:12 UTC 2006
On Feb 21, 2006, at 3:47 PM, Charilaos Skiadas wrote:
>
> On Feb 21, 2006, at 3:38 PM, Charilaos Skiadas wrote:
>
>> You could do this with ruby for instance:
>> #!/usr/bin/env ruby
>> print "[${1:description}][${2:id}]$0" + STDIN.read + "\n[${2:id}]:
>> ${3:href}"
>
> oops, spoke too soon. You'll want to escape all $ in STDIN.read, so:
> print "[${1:description}][${2:id}]$0" + STDIN.read.gsub('$','\\$')
> + "\n[${2:id}]: ${3:href}"
>
I'll give it a try tonight. Thanks.
--
Dr. Drang
More information about the textmate
mailing list