Removed the "Convert to DummyImage" snippet which was completely useless, replaced the "CSS Dummy Image" by the "Convert to DummyImage Link" and added the "Convert to DummyImage" command.

This commit is contained in:
Aziz Light
2010-06-25 04:12:37 +08:00
committed by Kenneth Reitz
parent 148ee36bd7
commit 2257c91df8
4 changed files with 59 additions and 4 deletions
@@ -0,0 +1,27 @@
<?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>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
<string>#!/usr/bin/env php
&lt;?php
$title = urlencode($_ENV[TM_SELECTED_TEXT]);
echo 'http://dummyimage.com/${1:100}${2:x${3:200}}${4:/${5:000}}${6:/${7:fff}}${8:.${9:gif}}&amp;text=' . $title;
?&gt;</string>
<key>fallbackInput</key>
<string>none</string>
<key>input</key>
<string>selection</string>
<key>keyEquivalent</key>
<string>^I</string>
<key>name</key>
<string>Convert to DummyImage Link</string>
<key>output</key>
<string>insertAsSnippet</string>
<key>uuid</key>
<string>B79A7D20-E3AA-4F78-9D46-9E3B6A9C5753</string>
</dict>
</plist>
+29
View File
@@ -0,0 +1,29 @@
<?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>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
<string>#!/usr/bin/env php
&lt;?php
$title = urlencode($_ENV[TM_SELECTED_TEXT]);
echo '&lt;img src="http://dummyimage.com/${1:100}${2:x${3:200}}${4:/${5:000}}${6:/${7:fff}}${8:.${9:gif}}&amp;text=' . $title . '" width="$1" height="$3" alt="' . $_ENV[TM_SELECTED_TEXT] . '" /&gt;';
?&gt;</string>
<key>fallbackInput</key>
<string>none</string>
<key>input</key>
<string>selection</string>
<key>keyEquivalent</key>
<string>@I</string>
<key>name</key>
<string>Convert to DummyImage</string>
<key>output</key>
<string>insertAsSnippet</string>
<key>scope</key>
<string>text.html</string>
<key>uuid</key>
<string>F6EF6D98-0D9D-4041-8877-40FE4B35308E</string>
</dict>
</plist>
+1 -3
View File
@@ -5,9 +5,7 @@
<key>content</key>
<string>http://dummyimage.com/${1:240}x${2:320}/${3:000}/${4:fff}</string>
<key>name</key>
<string>CSS Dummy Image</string>
<key>scope</key>
<string>source.css, text.html.css</string>
<string>DummyImage Link</string>
<key>tabTrigger</key>
<string>dimg</string>
<key>uuid</key>
+2 -1
View File
@@ -6,9 +6,10 @@
<string>DummyImage</string>
<key>ordering</key>
<array>
<string>CACAFF74-6F9A-4247-9221-7DE68B540FDC</string>
<string>06F1B362-E6B9-4C53-A85D-E39262401657</string>
<string>E8126264-B84C-4A17-96A2-52280D87E4C2</string>
<string>F6EF6D98-0D9D-4041-8877-40FE4B35308E</string>
<string>B79A7D20-E3AA-4F78-9D46-9E3B6A9C5753</string>
</array>
<key>uuid</key>
<string>63CDCCD5-C2CD-4E73-A3DA-725158110618</string>