I'm trying to create a drag command on the HTML bundle to have TextMate insert a <script src="..." /> snippet whenever I drag a .js file on a HTML file.
I've duplicated the "Insert CSS" snippet but whenever I try to change the File Types to 'js' the text field clears itself...
Any ideas what may be happening? Is the drag command stuff borked? It seems to fail only with .js files (I have a drag command I created some time ago for .as files and it works perfect...)
I'm using TextMate 1.5.1 1031 on 10.4.6 PPC
Thanks in advance...
On 5/31/06, Allan Odgaard firstname.lastname@example.org wrote:
On 30/5/2006, at 21:21, a!e muñoz wrote:
[...] Is the drag command stuff borked?
Yes, in this version it is not possible to edit the extensions from the bundle editor, sorry -- there will be an update shortly.
In the meantime, here's a hand-edited drag command that inserts a <script src...> when dragging a .js file on a HTML* file...
Just drag it into your personal bundle, inside 'DragCommands'
* 'HTML' meaning html, rhtml, php, cfm...