[TxMt] Blogging bundle: support for dragging files that are not images?

Ale Muñoz bomberstudios at gmail.com
Wed Nov 1 17:34:42 UTC 2006


On 11/1/06, Daniel Käsmayr <daniel at 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


More information about the textmate mailing list