Skip to content
This repository has been archived by the owner on Mar 11, 2023. It is now read-only.

Commit

Permalink
Added snippets for URLEncode variable transformation, Raw Audio urls,…
Browse files Browse the repository at this point in the history
… and Ajax Notes variables.
  • Loading branch information
bengold committed May 3, 2010
1 parent 89e93f3 commit 12c9134
Show file tree
Hide file tree
Showing 10 changed files with 116 additions and 7 deletions.
20 changes: 20 additions & 0 deletions Commands/Help: How to use Variable Transformations.tmCommand
@@ -0,0 +1,20 @@
<?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>open http://www.tumblr.com/docs/en/custom_themes#variable-transformations</string>
<key>fallbackInput</key>
<string>word</string>
<key>input</key>
<string>none</string>
<key>name</key>
<string>Help: How to use Variable Transformations</string>
<key>output</key>
<string>showAsHTML</string>
<key>uuid</key>
<string>914202C6-0B0B-4E72-B437-A8CFB05F783C</string>
</dict>
</plist>
10 changes: 7 additions & 3 deletions README.markdown
@@ -1,12 +1,16 @@
Tumblr Themes TextMate Bundle 1.2
Tumblr Themes TextMate Bundle 1.3
---------------------------------

### What is this? ###

This is is a tmbundle for the Mac text editor [TextMate](http://macromates.com/). It contains snippets for every Block an Variable from the the Tumblr custom themes docs as of April 2010. There are a lot of snippets in this bundle, about a megabyte's worth (which is pretty fucking big for a TextMate bundle). They have been organized in a manner that is similar to the [theme docs](http://www.tumblr.com/docs/en/custom_themes), but some adjustments have been made to make the snippets easy accessible in the contextual menu.
This is is a tmbundle for the Mac text editor [TextMate](http://macromates.com/). It contains snippets for every Block an Variable from the the Tumblr custom themes docs as of May 2010. There are a lot of snippets in this bundle, about a megabyte's worth (which is pretty fucking big for a TextMate bundle). They have been organized in a manner that is similar to the [theme docs](http://www.tumblr.com/docs/en/custom_themes), but some adjustments have been made to make the snippets easy accessible in the contextual menu.


### Release Notes - Updated: 04/20/10 ###
### Release Notes - Updated: 05/03/10 ###

__[1.3]__

* Added snippets for URLEncode variable transformation, Raw Audio urls, and Ajax Notes variables.

__[1.2]__

Expand Down
2 changes: 2 additions & 0 deletions Snippets/Javascript Plaintext.tmSnippet
Expand Up @@ -6,6 +6,8 @@
<string>{JSPlaintext$1};$0</string>
<key>name</key>
<string>Javascript Plaintext</string>
<key>scope</key>
<string>text.html</string>
<key>tabTrigger</key>
<string>jsplain</string>
<key>uuid</key>
Expand Down
2 changes: 2 additions & 0 deletions Snippets/Javascript.tmSnippet
Expand Up @@ -6,6 +6,8 @@
<string>{JS$1};$0</string>
<key>name</key>
<string>Javascript</string>
<key>scope</key>
<string>text.html</string>
<key>tabTrigger</key>
<string>js</string>
<key>uuid</key>
Expand Down
14 changes: 14 additions & 0 deletions Snippets/Notes Inserted (AJAX).tmSnippet
@@ -0,0 +1,14 @@
<?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>content</key>
<string>tumblrNotesInserted()</string>
<key>name</key>
<string>Notes Inserted (AJAX)</string>
<key>scope</key>
<string>text.html</string>
<key>uuid</key>
<string>D4ADFE34-A569-4E97-BC75-B52D1698A317</string>
</dict>
</plist>
14 changes: 14 additions & 0 deletions Snippets/Notes Loaded (AJAX).tmSnippet
@@ -0,0 +1,14 @@
<?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>content</key>
<string>tumblrNotesLoaded(notes_html)</string>
<key>name</key>
<string>Notes Loaded (AJAX)</string>
<key>scope</key>
<string>text.html</string>
<key>uuid</key>
<string>CDBAC089-3E70-4385-A317-BCA03BA1AAF8</string>
</dict>
</plist>
2 changes: 2 additions & 0 deletions Snippets/Plaintext.tmSnippet
Expand Up @@ -6,6 +6,8 @@
<string>{Plaintext$1}$0</string>
<key>name</key>
<string>Plaintext</string>
<key>scope</key>
<string>text.html</string>
<key>tabTrigger</key>
<string>plain</string>
<key>uuid</key>
Expand Down
16 changes: 16 additions & 0 deletions Snippets/Raw Audio URL (iPhone Only).tmSnippet
@@ -0,0 +1,16 @@
<?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>content</key>
<string>{RawAudioURL}</string>
<key>name</key>
<string>Raw Audio URL (iPhone Only)</string>
<key>scope</key>
<string>text.html</string>
<key>tabTrigger</key>
<string>raw audio</string>
<key>uuid</key>
<string>A093B97B-C9AA-43FE-AB97-D750C2F52229</string>
</dict>
</plist>
16 changes: 16 additions & 0 deletions Snippets/URLEncoded.tmSnippet
@@ -0,0 +1,16 @@
<?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>content</key>
<string>{URLEncoded${1:variable}}$0</string>
<key>name</key>
<string>URLEncoded</string>
<key>scope</key>
<string>text.html</string>
<key>tabTrigger</key>
<string>encoded</string>
<key>uuid</key>
<string>6820C504-0B7A-44A1-B1CE-456615EC1115</string>
</dict>
</plist>
27 changes: 23 additions & 4 deletions info.plist
Expand Up @@ -20,6 +20,7 @@
<string>58BBD0D4-9A27-4B15-B134-73F1E2920E9E</string>
<string>937809B1-87BE-48B1-B4FA-0814281B8293</string>
<string>82449D02-F760-4567-A843-4356D118AD88</string>
<string>322CCDEE-5001-489D-A1D4-814B8978D7AA</string>
</array>
<key>submenus</key>
<dict>
Expand Down Expand Up @@ -212,10 +213,6 @@
<string>C5607143-B568-477C-9EDA-6F8ED1690772</string>
<string>A7C63BDB-C811-4BA3-B332-E79BAD146A72</string>
<string>------------------------------------</string>
<string>4A69FC62-C702-435F-9D4D-E631074D80C1</string>
<string>B724DEB3-B3A6-4A8C-BFAF-543B297E3A63</string>
<string>C1743836-468E-4CB0-9786-1B232607901C</string>
<string>------------------------------------</string>
<string>DD1E7C14-0D90-4DCF-874C-A369DAADF93B</string>
<string>A0A50C88-DF3B-4EAC-BE71-A74C762FE60B</string>
<string>8E710128-1B9F-46D4-8106-08C5418560AE</string>
Expand Down Expand Up @@ -283,6 +280,19 @@
<key>name</key>
<string>Posts</string>
</dict>
<key>322CCDEE-5001-489D-A1D4-814B8978D7AA</key>
<dict>
<key>items</key>
<array>
<string>914202C6-0B0B-4E72-B437-A8CFB05F783C</string>
<string>4A69FC62-C702-435F-9D4D-E631074D80C1</string>
<string>B724DEB3-B3A6-4A8C-BFAF-543B297E3A63</string>
<string>C1743836-468E-4CB0-9786-1B232607901C</string>
<string>6820C504-0B7A-44A1-B1CE-456615EC1115</string>
</array>
<key>name</key>
<string>Variable Transformations</string>
</dict>
<key>38101D36-3C0B-4A32-BF4A-E4256ABA1E33</key>
<dict>
<key>items</key>
Expand Down Expand Up @@ -312,6 +322,7 @@
<string>1BC04ACC-9D04-40FA-922D-4E714C61D2F0</string>
<string>8C5D219F-4DDF-43D1-9A47-A3FFCFEEF04B</string>
<string>6B53005B-E3C6-4E6A-9E20-6D7AEC148933</string>
<string>A093B97B-C9AA-43FE-AB97-D750C2F52229</string>
<string>29E04ABB-2D96-487A-8227-400F21AF3743</string>
<string>2C6C82AC-DF37-44D8-B30E-7F2EA4207321</string>
<string>436B6552-7C72-414B-89E4-31B29FD64A81</string>
Expand Down Expand Up @@ -706,6 +717,9 @@
<string>7FA8BD14-D92E-4E36-B4CC-DB0ECFAEED46</string>
<string>0C04BD17-5AA8-4D93-9CC7-6CF45065FA1B</string>
<string>DE8AAF24-24AF-4CE3-BE5F-FDEA3762C16D</string>
<string>------------------------------------</string>
<string>CDBAC089-3E70-4385-A317-BCA03BA1AAF8</string>
<string>D4ADFE34-A569-4E97-BC75-B52D1698A317</string>
</array>
<key>name</key>
<string>Notes</string>
Expand Down Expand Up @@ -1013,6 +1027,11 @@
<string>4A69FC62-C702-435F-9D4D-E631074D80C1</string>
<string>B724DEB3-B3A6-4A8C-BFAF-543B297E3A63</string>
<string>C1743836-468E-4CB0-9786-1B232607901C</string>
<string>CDBAC089-3E70-4385-A317-BCA03BA1AAF8</string>
<string>D4ADFE34-A569-4E97-BC75-B52D1698A317</string>
<string>A093B97B-C9AA-43FE-AB97-D750C2F52229</string>
<string>6820C504-0B7A-44A1-B1CE-456615EC1115</string>
<string>914202C6-0B0B-4E72-B437-A8CFB05F783C</string>
</array>
<key>uuid</key>
<string>4D096479-1B18-4746-9D04-349D7D776C86</string>
Expand Down

0 comments on commit 12c9134

Please sign in to comment.