<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>mobile and gis dev notes &#187; textmate</title>
	<atom:link href="http:///wordpress/tag/textmate/feed/" rel="self" type="application/rss+xml" />
	<link>/wordpress</link>
	<description>by rupert</description>
	<lastBuildDate>Sun, 22 Jan 2012 04:34:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>TextMate CheatSheet (Updated)</title>
		<link>/wordpress/2009/08/textmate-cheatsheet-2/</link>
		<comments>/wordpress/2009/08/textmate-cheatsheet-2/#comments</comments>
		<pubDate>Sun, 02 Aug 2009 03:10:12 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[osx]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[textmate]]></category>

		<guid isPermaLink="false">/wordpress/?p=808</guid>
		<description><![CDATA[Shortcuts Ruby: --------------------------------- :key =&#62; &#34;value&#34; - : + tab &#160; Navigate: --------------------------------- go to file - cmd - t tab to file (left&#124;right) - opt + cmd + (left arrow&#124;right arrow) select bundle item - ctrl + cmd + t navigate (from controller to view) - opt + cmd + down arrow show methods [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Shortcuts</strong></p>

<div class="wp_syntax"><div class="code"><pre class="textmate" style="font-family:monospace;">Ruby:
---------------------------------
:key =&gt; &quot;value&quot; - : + tab
&nbsp;
Navigate:
---------------------------------
go to file - cmd - t
tab to file (left|right) - opt + cmd + (left arrow|right arrow)
select bundle item - ctrl + cmd + t
navigate (from controller to view) - opt + cmd + down arrow
show methods - shift + cmd + t
&nbsp;
Views:
---------------------------------
create partial - ctrl + shift + H
render partial (object|collection|locals) - r + p + (o|c|l)
inserting an erb tag &lt;%=  %&gt; or &lt;% %&gt; - ctrl + shift + . (cycle)
code completion, &lt;h3&gt;foo&lt;/h3&gt; - opt + cmd + .
&nbsp;
2RMobile Snippets:
---------------------------------
&lt;% objects.each do |object| %&gt;		2rmloope
	&lt;%= object. %&gt;
&lt;% end %&gt;</pre></div></div>

<p><strong>* <a href="http://www.devdaily.com/blog/post/mac-os-x/how-to-move-textmate-project-drawer-left-right-side/">Make the project drawer appear on the left or right.</a><br />
</strong></p>
<p>From the menubar select View, then Hide Project Drawer.</p>
<p>Move your TextMate editor window over to the left side of the screen so the project gutter won&#8217;t have enough room to open up on that side. (You can move the window all the way to the left if you want, but you don&#8217;t need to go that far.)</p>
<p>Select View, then Show Project Drawer, and the drawer will now open on the right side of your TextMate editor.</p>
<p><strong>* Plugins directory is located at</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">1. <span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>TextMate.app<span style="color: #000000; font-weight: bold;">/</span>Contents<span style="color: #000000; font-weight: bold;">/</span>PlugIns<span style="color: #000000; font-weight: bold;">/</span>
2. <span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>rupert<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>Application Support<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

<p><a href="http://manual.macromates.com/en/bundles#support_folder">http://manual.macromates.com/en/bundles#support_folder</a></p>
<p><strong>* Installing a bundle.</strong><br />
RubyOnRails Bundle: <a href="https://github.com/drnic/ruby-on-rails-tmbundle">https://github.com/drnic/ruby-on-rails-tmbundle</a><br />
RSpec Bundle: <a href="https://github.com/rspec/rspec-tmbundle">https://github.com/rspec/rspec-tmbundle</a><br />
Cucumber Bundle: <a href="https://github.com/aslakhellesoy/cucumber-tmbundle">https://github.com/aslakhellesoy/cucumber-tmbundle</a></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> ~<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>Application\ Support<span style="color: #000000; font-weight: bold;">/</span>TextMate<span style="color: #000000; font-weight: bold;">/</span>Bundles
<span style="color: #7a0874; font-weight: bold;">cd</span> ~<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>Application\ Support<span style="color: #000000; font-weight: bold;">/</span>TextMate<span style="color: #000000; font-weight: bold;">/</span>Bundles
git clone git:<span style="color: #000000; font-weight: bold;">//</span>github.com<span style="color: #000000; font-weight: bold;">/</span>drnic<span style="color: #000000; font-weight: bold;">/</span>ruby-on-rails-tmbundle.git <span style="color: #ff0000;">&quot;Ruby on Rails.tmbundle&quot;</span></pre></div></div>

<p>Launch TextMate > Bundles > Bundle Editor > &#8220;Reload Bundles&#8221;</p>
<p><strong>* Identify *.html.erb to open in HTML(Rails)</strong><br />
Read <a href="http://blog.macromates.com/2007/file-type-detection-rspec-rails/<br />
">http://blog.macromates.com/2007/file-type-detection-rspec-rails/</a></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rupert:blog rupert$ defaults <span style="color: #c20cb9; font-weight: bold;">read</span> com.macromates.textmate OakLanguageFileBindings
<span style="color: #7a0874; font-weight: bold;">&#40;</span>
        <span style="color: #7a0874; font-weight: bold;">&#123;</span>
        fileTypes =         <span style="color: #7a0874; font-weight: bold;">&#40;</span>
            txt
        <span style="color: #7a0874; font-weight: bold;">&#41;</span>;
        language = <span style="color: #ff0000;">&quot;17994EC8-6B1D-11D9-AC3A-000D93589AF6&quot;</span>;
        name = HTML;
    <span style="color: #7a0874; font-weight: bold;">&#125;</span>,
        <span style="color: #7a0874; font-weight: bold;">&#123;</span>
        fileTypes =         <span style="color: #7a0874; font-weight: bold;">&#40;</span>
            builder,
            rb,
            erb
        <span style="color: #7a0874; font-weight: bold;">&#41;</span>;
        language = <span style="color: #ff0000;">&quot;54D6E91E-8F31-11D9-90C5-0011242E4184&quot;</span>;
        name = <span style="color: #ff0000;">&quot;Ruby on Rails&quot;</span>;
    <span style="color: #7a0874; font-weight: bold;">&#125;</span>
<span style="color: #7a0874; font-weight: bold;">&#41;</span>
rupert:blog rupert$ defaults delete com.macromates.textmate OakLanguageFileBindings</pre></div></div>

<p><strong>* Identify Gemfiles in TextMate for Ruby on Rails</strong><br />
Read <a href="http://efreedom.com/Question/1-3174451/Bundler-Gemfile-Syntax-Highlight-Text-Mate">http://efreedom.com/Question/1-3174451/Bundler-Gemfile-Syntax-Highlight-Text-Mate</a></p>
<p>Include the &#8216;Gemfile&#8217; as a filetype</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">fileTypes = <span style="color: #7a0874; font-weight: bold;">&#40;</span> <span style="color: #ff0000;">'rb'</span>, <span style="color: #ff0000;">'rxml'</span>, <span style="color: #ff0000;">'builder'</span>, <span style="color: #ff0000;">'Gemfile'</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>;</pre></div></div>

<p><strong>* Soft Tabs and Spaces in TextMate</strong><br />
To turn on soft tabs (bottom of the window, in the tab size selector). This will insert spaces instead of tabs, so there won&#8217;t be anything to convert when it&#8217;s time to save<br />
Source: <a href="http://old.nabble.com/Convert-tabs-to-spaces-when-saving--td28891731.html">http://old.nabble.com/Convert-tabs-to-spaces-when-saving&#8211;td28891731.html</a></p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2009/08/textmate-cheatsheet-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Textmate now has VI!</title>
		<link>/wordpress/2008/11/my-textmate-now-has-vi/</link>
		<comments>/wordpress/2008/11/my-textmate-now-has-vi/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 12:28:15 +0000</pubDate>
		<dc:creator>rupert</dc:creator>
				<category><![CDATA[rails]]></category>
		<category><![CDATA[textmate]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">/wordpress/?p=292</guid>
		<description><![CDATA[Yep.. you read it right! Its not the full vim but I&#8217;m navigating much quicker now.. Now I have a drawer on my left, vim navigation on the files! sweet! http://www.fowpas.net/vimate Notes: * No undo &#8216;u&#8217;. Use [COMMAND]+Z]]></description>
			<content:encoded><![CDATA[<p>Yep.. you read it right! Its not the full vim but I&#8217;m navigating much quicker now.. Now I have a drawer on my left, vim navigation on the files! sweet!</p>
<p><a href="http://www.fowpas.net/vimate">http://www.fowpas.net/vimate</a></p>
<p>Notes:<br />
* No undo &#8216;u&#8217;. Use [COMMAND]+Z</p>
]]></content:encoded>
			<wfw:commentRss>/wordpress/2008/11/my-textmate-now-has-vi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

