Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Small addition for :hint, and fixed a invalid ERB-snippet.

  • Loading branch information...
commit c1648ec0eb57191bc2d89a57d29b0c47bf111949 1 parent acd1218
@grimen grimen authored
View
24 Commands/Update Bundle.tmCommand
@@ -0,0 +1,24 @@
+<?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>cd "$TM_BUNDLE_PATH"
+
+echo "&lt;pre&gt;"
+[ -d ".git" ] &amp;&amp; git pull
+[ ! -d .git ] &amp;&amp; echo "You must install the bundle using Git in order to update via this command."
+osascript -e 'tell app "TextMate" to reload bundles'
+echo "&lt;/pre&gt;"</string>
+ <key>input</key>
+ <string>selection</string>
+ <key>name</key>
+ <string>Update Bundle</string>
+ <key>output</key>
+ <string>showAsHTML</string>
+ <key>uuid</key>
+ <string>A72081DA-DD28-47DC-B74B-39655F856DA0</string>
+</dict>
+</plist>
View
10 README.textile
@@ -8,9 +8,13 @@ h2. What is Formtastic?
h2. Install this TextMate-bundle...
-<pre>mkdir -p ~/Library/Application\ Support/TextMate/Bundles
+<pre>
+mkdir -p ~/Library/Application\ Support/TextMate/Bundles
cd ~/Library/Application\ Support/TextMate/Bundles
git clone git://github.com/grimen/formtastic_tmbundle.git 'Formtastic.tmbundle'
-osascript -e 'tell app "TextMate" to reload bundles'</pre>
+osascript -e 'tell app "TextMate" to reload bundles'
+</pre>
-Copyright© 2009 Jonas Grimfelt, released under MIT-license
+h2. License
+
+Copyright© 2009 Jonas Grimfelt, released under MIT-license.
View
16 Snippets/:hint =>.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>:hint =&gt; '$1'$0</string>
+ <key>name</key>
+ <string>:hint =&gt;</string>
+ <key>scope</key>
+ <string>text.haml, text.html.ruby</string>
+ <key>tabTrigger</key>
+ <string>hint</string>
+ <key>uuid</key>
+ <string>FE80BBB7-7068-4108-9AB9-67C777FC9EAC</string>
+</dict>
+</plist>
View
2  Snippets/buttons block.tmSnippet
@@ -4,7 +4,7 @@
<dict>
<key>content</key>
<string>&lt;% f.buttons do %&gt;
- ${1:= f.commit_button${2: '${3:Submit}'}}
+ ${1:&lt;%= f.commit_button${2: '${3:Submit}'} %&gt;}
&lt;% end %&gt;$0</string>
<key>name</key>
<string>f.buttons (ERB)</string>
View
2  Snippets/form.tmSnippet
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>- semantic_form_for(${1:@${2:object}}) do |${3:f}|
+ <string>- semantic_form_for(${1:@${2:object}}${3:, :html =&gt; {:method =&gt; ${4::put}\}}) do |${5:f}|
$0</string>
<key>name</key>
<string>semantic_form_for (HAML)</string>
View
4 Snippets/semantic_form_for.tmSnippet
@@ -3,8 +3,8 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>&lt;% semantic_form_for(${1:@${2:object}}) do |${3:f}| %&gt;
- $4
+ <string>&lt;% semantic_form_for(${1:@${2:object}}${3:, :html =&gt; {:method =&gt; ${4::put}}}) do |${5:f}| %&gt;
+ $6
&lt;% end %&gt;$0</string>
<key>name</key>
<string>semantic_form_for (ERB)</string>
View
2  info.plist
@@ -187,10 +187,12 @@
<string>DBA6619C-BA57-489E-BA91-F6D48C8DE6F8</string>
<string>48D3B959-894F-4A69-9F9B-29234482B5E5</string>
<string>011AEC7B-5ED6-4CBF-9C10-303BFFCC5788</string>
+ <string>FE80BBB7-7068-4108-9AB9-67C777FC9EAC</string>
<string>1B24D394-999C-40D4-827B-D01B289996B3</string>
<string>59E6149B-1E46-4CBF-AA4B-E4498C98A9D5</string>
<string>2FB4707E-DCD5-4B2F-8CC8-C9503114336F</string>
<string>3AF44C98-E7E8-4791-9796-57C0F4B3C3E9</string>
+ <string>A72081DA-DD28-47DC-B74B-39655F856DA0</string>
</array>
<key>uuid</key>
<string>E2D6524E-C968-4E71-874C-F2A9992B8730</string>
Please sign in to comment.
Something went wrong with that request. Please try again.