[TxMt] idea: a better label completion technique

Allan Odgaard throw-away-1 at macromates.com
Sun Sep 24 12:02:41 UTC 2006


On 24/9/2006, at 12:54, Piero D''Ancona wrote:

> [...] This must be some escaping trickery. Could some pious wizard  
> explain what's wrong?

You need to escape the double quotes inside the attribute value  
(since the attribute value itself is surrounded in double quotes).

Also, the command needs to be run asynchronously to not stall TM.

Here’s a proof-of-concept, you will likely be disappointed by the  
time it takes to click the link, till text is actually inserted --  
that’s time spent by osascript.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Insert Into TM.tmCommand
Type: application/octet-stream
Size: 839 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20060924/d0881e97/attachment.tmCommand>
-------------- next part --------------



More information about the textmate mailing list