mirror of
https://github.com/kennethreitz-archive/DummyImage.tmBundle.git
synced 2026-06-05 07:16:14 +00:00
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:
committed by
Kenneth Reitz
parent
148ee36bd7
commit
2257c91df8
@@ -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
|
||||
<?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}}&text=' . $title;
|
||||
?></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>
|
||||
@@ -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
|
||||
<?php
|
||||
$title = urlencode($_ENV[TM_SELECTED_TEXT]);
|
||||
|
||||
echo '<img src="http://dummyimage.com/${1:100}${2:x${3:200}}${4:/${5:000}}${6:/${7:fff}}${8:.${9:gif}}&text=' . $title . '" width="$1" height="$3" alt="' . $_ENV[TM_SELECTED_TEXT] . '" />';
|
||||
?></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>
|
||||
@@ -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
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user