Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

43 lines (42 sloc) 1.547 kb
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>bundleUUID</key>
<string>4675F24E-6227-11D9-BFB1-000D93589AF6</string>
<key>command</key>
<string>if echo "$TM_SCOPE" | grep -q meta.property-list.css
then
if echo "$TM_SCOPE" | grep -q meta.property-value.css
then
if echo "$TM_CURRENT_WORD" | grep -q url\(\)
then echo -n "'$TM_DROPPED_FILE'"
elif echo "$TM_SCOPE" | grep -q string.quoted.single.css
then echo -n "$TM_DROPPED_FILE"
else
echo -n "url('$TM_DROPPED_FILE')"
fi
else
echo -ne "background:\${1: #\${2:DDD}} url('$TM_DROPPED_FILE')\${3: \${4:repeat/repeat-x/repeat-y/no-repeat} \${5:scroll/fixed} \${6:top/center/bottom/x-%/x-pos} \${7:left/center/right/y-%/y-pos}};\n\$0"
fi
else
echo -ne "\${1:#selector} {\n background: url('$TM_DROPPED_FILE')\${3: \${4:no-repeat} \${5:scroll} \${6:top} \${7:left}};\n"
sips -g pixelWidth -g pixelHeight "$TM_DROPPED_FILE"|awk '/pixelWidth/ { printf(" width: %dpx;\n", $2) } /pixelHeight/ { printf(" height: %dpx;\n}\$0", $2) }'
fi</string>
<key>draggedFileExtensions</key>
<array>
<string>png</string>
<string>jpeg</string>
<string>jpg</string>
<string>gif</string>
</array>
<key>name</key>
<string>Insert Image uri</string>
<key>output</key>
<string>insertAsSnippet</string>
<key>scope</key>
<string>source.sass</string>
<key>uuid</key>
<string>0600FA72-0508-48B1-B627-A1D2D8BB1811</string>
</dict>
</plist>
Jump to Line
Something went wrong with that request. Please try again.