[TxMt] drag commands

Allan Odgaard throw-away-1 at macromates.com
Thu Oct 5 11:09:45 UTC 2006


On 5. Oct 2006, at 05:19, marios wrote:

>> The easiest is to use the regexp substitution capabilities of  
>> TextMate
>> snippets.
>>
>> So use something like ${TM_DROPPED_FILE/.*\/|\..+//g} — that ought to
>> strip both the leading directories and the trailing extension.
> I still couldn't get the above going, I tried to escape also the above
> variable and if I do echo the above snippet, as a drag command causes
> a crash.

Please paste the code you tried, and certainly also the one which  
lead to a crash.




More information about the textmate mailing list