[TxMt] drag commands

marios tmtxpstuff at consking.com
Sat Sep 30 20:38:20 UTC 2006

Hi, again.

I had a look again today at the drag commands documentation (man sec 11)

" TM_MODIFIER_FLAGS — the modifier keys which were held down when the
file got dropped. This is a bitwise OR in the form:
SHIFT|CONTROL|OPTION|COMMAND (in case all modifiers were down). "

However, I couldnt' figure this one out.

What I would like to do , is to make the command conditional, so it will
do a different thing with the URL
holding option and command.

How do I change the code, so it uses a different Variable in these cases ?
(for instance, in this case, using a different variable like

This is the current drag command:

echo -n "<a href=\"http://$TM_REMOTE_URL/file_download/\${1:file_id}\"
title=\"\${2:`ruby -e 'print

Also , I tried to modify the code so it strips off the file-extension
from the third variable doing the usual TM Transformation,
but then I get an Error , gsub complaining.

Thanks again, regards, marios

More information about the textmate mailing list