[TxMt] drag commands
marios
tmtxpstuff at consking.com
Sun Oct 8 17:49:46 UTC 2006
I finally could figure out how to do this, without using the Ruby code,
thanks to Allan's excellent documentations.:
base=${TM_DROPPED_FILE%.*}
title="${base##*/}"
echo -n "<a href=\"http://$TM_REMOTE_URL/file_download/\${1:file_id}\"
title=\"\${2:$title}\">\${3:$title}</a>"
However, in order to work this correctly, the file must be dragged slowly.
If I drag the file to fast, then the regions for the tab stop variables
1, 2 and 3 will loose track and cease to function correctly, since they
are highlighted at unproper positions.
The command is attached.
regards, marios
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Zip Drag command.tmDragCommand.zip
Type: application/zip
Size: 703 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20061008/2186885b/attachment.zip>
More information about the textmate
mailing list