diff --git a/Commands/Convert to DummyImage Link.tmCommand b/Commands/Convert to DummyImage Link.tmCommand new file mode 100644 index 0000000..0504669 --- /dev/null +++ b/Commands/Convert to DummyImage Link.tmCommand @@ -0,0 +1,27 @@ + + + + + beforeRunningCommand + nop + command + #!/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; +?> + fallbackInput + none + input + selection + keyEquivalent + ^I + name + Convert to DummyImage Link + output + insertAsSnippet + uuid + B79A7D20-E3AA-4F78-9D46-9E3B6A9C5753 + + diff --git a/Commands/Convert to DummyImage.tmCommand b/Commands/Convert to DummyImage.tmCommand new file mode 100644 index 0000000..e68669f --- /dev/null +++ b/Commands/Convert to DummyImage.tmCommand @@ -0,0 +1,29 @@ + + + + + beforeRunningCommand + nop + command + #!/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] . '" />'; +?> + fallbackInput + none + input + selection + keyEquivalent + @I + name + Convert to DummyImage + output + insertAsSnippet + scope + text.html + uuid + F6EF6D98-0D9D-4041-8877-40FE4B35308E + + diff --git a/Snippets/CSS Dummy Image.tmSnippet b/Snippets/CSS Dummy Image.tmSnippet index 968070f..96a8122 100644 --- a/Snippets/CSS Dummy Image.tmSnippet +++ b/Snippets/CSS Dummy Image.tmSnippet @@ -5,9 +5,7 @@ content http://dummyimage.com/${1:240}x${2:320}/${3:000}/${4:fff} name - CSS Dummy Image - scope - source.css, text.html.css + DummyImage Link tabTrigger dimg uuid diff --git a/info.plist b/info.plist index e5eb128..efd6c64 100644 --- a/info.plist +++ b/info.plist @@ -6,9 +6,10 @@ DummyImage ordering - CACAFF74-6F9A-4247-9221-7DE68B540FDC 06F1B362-E6B9-4C53-A85D-E39262401657 E8126264-B84C-4A17-96A2-52280D87E4C2 + F6EF6D98-0D9D-4041-8877-40FE4B35308E + B79A7D20-E3AA-4F78-9D46-9E3B6A9C5753 uuid 63CDCCD5-C2CD-4E73-A3DA-725158110618