On 11/1/06, Daniel Käsmayr daniel@kaesmayr.net wrote:
Hello,
is there any way to add support for non-image files when dragged onto the TM window; these files should be linked and uploaded to the serves as are images?!
Check the manual for "Drag Commands":
http://macromates.com/textmate/manual/drag_commands#drag_commands
It should be pretty easy to build a command that suits your needs.
Here's a sample command I use a lot:
echo -n "<link rel="shortcut icon" href="$TM_DROPPED_FILE" />"
It's defined for files of type "ico", and scoped to work for HTML only.
Hope it helps
-- Ale Muñoz http://sofanaranja.com http://appleweblog.com