Permalink
Browse files

Improved link_to_function and gem snippet.

  • Loading branch information...
1 parent 1a1a47f commit 37cff3f70197c3998eb6a31680820b5ef2de5a52 @carlosbrando carlosbrando committed Aug 23, 2010
Showing with 19 additions and 2 deletions.
  1. +1 −1 Snippets/gem.tmSnippet
  2. +16 −0 Snippets/link_to_function.tmSnippet
  3. +2 −1 info.plist
View
2 Snippets/gem.tmSnippet
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>gem '${1:name}'${2:${3:, "${4:1.0}"}${5:${6:, :require =&gt; "${7:$1}"}${8:, :group =&gt; :${9:test}}}}</string>
+ <string>gem '${1:name}'${2:${3:, "${4:1.0}"}${5:${6:, :require =&gt; ${7:"${8:$1}"}}${9:, :group =&gt; :${10:test}}}}</string>
<key>name</key>
<string>gem</string>
<key>scope</key>
View
16 Snippets/link_to_function.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>${TM_RAILS_TEMPLATE_START_RUBY_EXPR}link_to_function ${1:"${2:Greeting}"}, "${3:alert('Hello world!')}"$4${TM_RAILS_TEMPLATE_END_RUBY_EXPR}</string>
+ <key>name</key>
+ <string>link_to_function</string>
+ <key>scope</key>
+ <string>text.html.ruby, text.haml</string>
+ <key>tabTrigger</key>
+ <string>lf</string>
+ <key>uuid</key>
+ <string>F5983CAF-0655-45FA-A385-9E9A8C28425C</string>
+</dict>
+</plist>
View
3 info.plist
@@ -803,6 +803,7 @@
<string>C11C0BF5-7BC8-11D9-906A-000D932CD5BA</string>
<string>D21BE958-7BC8-11D9-906A-000D932CD5BA</string>
<string>E5E08AA0-4EDD-4583-BF07-5D6C49E98410</string>
+ <string>F5983CAF-0655-45FA-A385-9E9A8C28425C</string>
<string>F7744F07-306C-4951-AB5A-3D69BA5516B7</string>
<string>9038B99B-4810-4C0B-B547-F72F2AD5CAFC</string>
<string>AC385ABF-96CD-4FCB-80AD-BF37D6EE79D2</string>
@@ -976,10 +977,10 @@
<string>35A467CF-D63D-4EBD-BD66-52674B3C07E4</string>
<string>56151E60-589F-4CE7-8062-3E087732E2F1</string>
<string>8B515110-41D3-11DD-AE16-0800200C9A66</string>
+ <string>5C773E3D-436E-4A28-8399-859CE41E504F</string>
<string>32F30207-D827-46D9-889A-451C35269D52</string>
<string>AECD46CF-9031-4059-B386-262DBABD97B1</string>
<string>675DD92F-42F1-4B55-B56A-5D4ABC1375C4</string>
- <string>5C773E3D-436E-4A28-8399-859CE41E504F</string>
<string>CF489B31-5DD2-4B83-B503-AD3ECF7BDEB7</string>
<string>0742F232-38ED-4C52-AD68-1858F0F2C601</string>
<string>88047A77-B889-4F47-892D-4C3EBA98D968</string>

0 comments on commit 37cff3f

Please sign in to comment.