[TxMt] All purpose CSS Image Drag Command
Brett Terpstra
brett at circlesixdesign.com
Tue Oct 24 11:27:07 UTC 2006
I figured out how to all-purpose-ify the image drag command. Now
with one command, it can handle multiple situations. If you drag it:
Outside a selector/property (source.css): nothing happens
After a property (meta.property-value.css): inserts url('path/
image.jpg')
Inside of empty parentheses in a property value: inserts 'path/
image.jpg'
Inside of single quotes in a property value: inserts path/image.jpg
Inside a property list, outside a value: inserts a full background:
shortcut tag.
Suggestions welcome.
Brett

Brett Terpstra : Art Director
Circle Six Design, Inc.
111 Riverfront Dr, Suite 204
..................................................
p: 507.459.4398
877.858.4332
f: 1.866.540.3063
e: brett at circlesixdesign.com
http://www.circlesixdesign.com
..................................................
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20061024/773844fd/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Insert Image URL 3.tmDragCommand
Type: application/octet-stream
Size: 1287 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20061024/773844fd/attachment.tmDragCommand>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20061024/773844fd/attachment-0001.html>
More information about the textmate
mailing list