[TxMt] CSS Drag Actions
Brett Terpstra
brett at circlesixdesign.com
Mon Oct 23 20:05:48 UTC 2006
I actually had something similar to these as part of a bundle of
"missing" CSS commands I've been compiling. I'm pleased to know that
there's someone else who might actually use all the stuff I'm
compiling, as the list seems to be dominated by LaTeX users. ;-). My
commands just insert url('image.jpg') and image.jpg based on scope.
I define background images as part of the background: rule, so I
don't use the background-image: rule very much.
What I'm wishing is that there was a way to scope inside of an empty
parenthesis pair. I'd like to make the drag command conditional so
that it drops a url('image.jpg') when it's in a property-value, a
background-image: url... inside a property-list, an 'image.jpg'
inside an empty parenthesis pair and image.jpg inside of single
quotes. That would cover all the bases ;-).
Brett
On Oct 23, 2006, at 2:05 PM, James Hicks wrote:
> Not sure if anyone has done these yet but here are some simple drag
> actions for images in CSS.
>
> The second one if for dropping between url() so you can use the
> background snippet for instance then drag an image between the
> brackets.
>
> Image as a background:
> File types:
> png, jpg, jpeg, gif
>
> Commands:
> echo "background-image: url(\"$TM_DROPPED_FILE\");"
>
> Scope:
> meta.property-list.css
>
>
> Image Path:
> File types:
> png, jpg, jpeg, gif
>
> Commands
> echo -n "\"$TM_DROPPED_FILE\""
> meta.property-value.css
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20061023/a8d64f37/attachment.html>
More information about the textmate
mailing list