[TxMt] <img> & <css> drag commands

Allan Odgaard allan at macromates.com
Tue Mar 29 15:46:23 UTC 2005


On Mar 29, 2005, at 16:49, Michael wrote:

> I was wondering if anyone had got the built-in HTML drag commands for 
> <img> and <css> to work in Textmate 1b5?

It works for me. What's not apparent from the bundle editor is that 
currently the extension of the file in which you drop the image is used 
to figure out which drag command to execute.

In the future this will be changed to instead rely on the scope, but 
for now the HTML file should have one of these extensions: html, htm, 
rhtml, shtml, phtml, php, php3, php4, php5, inc, cfm, cfml, dbm, dbml.

You can edit the drag command outside TextMate if you're using another 
extension for your files.

> Currently if I drag a html  or PDF file from the project window into a 
> HTML file I'm working on it will create a <a href=""> link, but if I 
> drag an image file or css file onto the HTML file, Textmate will 
> insert the raw source of the dragged file.

Hmm... judging from this, your document does have the proper extension. 
Which extension does the dragged CSS or image file have?




More information about the textmate mailing list