<?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>One Man's Walk in work &#187; textmate</title>
	<atom:link href="http://onemanswalk.com/work/tag/textmate/feed/" rel="self" type="application/rss+xml" />
	<link>http://onemanswalk.com/work</link>
	<description>jeremy lightsmith on agile, ruby, and consulting</description>
	<lastBuildDate>Wed, 04 May 2011 04:29:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Making Line Up / Down not suck in Textmate</title>
		<link>http://onemanswalk.com/work/2008/08/05/making-line-up-down-not-suck-in-textmate/</link>
		<comments>http://onemanswalk.com/work/2008/08/05/making-line-up-down-not-suck-in-textmate/#comments</comments>
		<pubDate>Tue, 05 Aug 2008 00:46:00 +0000</pubDate>
		<dc:creator>jeremy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[textmate]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[	I think I blew Steve Conover&#8217;s mind last week.

	He, like me, and every other sane rational person I&#8217;ve ever met, thinks that when you say &#8220;line up&#8221; or &#8220;line down&#8221; in a text editor, it should take the line(s) you are currently on and move them up, in their entirety.  Furthermore, that if you [...]]]></description>
			<content:encoded><![CDATA[	<p>I think I blew <a href="http://pivots.pivotallabs.com/users/steve/blog" title="">Steve Conover&#8217;s</a> mind last week.</p>

	<p>He, like me, and every other sane rational person I&#8217;ve ever met, thinks that when you say &#8220;line up&#8221; or &#8220;line down&#8221; in a text editor, it should take the line(s) you are currently on and move them up, in their entirety.  Furthermore, that if you press &#8220;line up&#8221; 5 times, the line(s) you are currently on should move up 5 lines.</p>

	<p>Textmate, as much as I love it, does not do this, and this has long been a source of contention and strife among my colleagues at <a href="http://pivotallabs.com/" title="">Pivotal</a>.</p>

	<p>This, however, is a story with a happy ending.  Last week, Steve and I were pairing on Textmate, and he was complaining that line up / down wasn&#8217;t working properly.  A couple hours later, I had a brilliant insight.  This is how you fix Textmate&#8217;s line up / down :</p>

	<p>Pull up textmate and type :</p>

<pre>
command-option-M
command-shift-L
command-control-up arrow
command-option-M
control-option-m
</pre>

	<p>This will start recording a macro, select the current line, move the current line up, stop recording the macro, and then save the macro.</p>

	<p>Next, name your macro &#8220;line up&#8221; in the dialog that just popped up, and give it a key equivalent of command-control-up arrow.</p>

	<p>Congratulations, you just fixed line up!</p>

	<p>Now let&#8217;s do the same with line down :</p>

<pre>
command-option-M
command-shift-L
command-control-down arrow
command-option-M
control-option-m
</pre>

	<p>This time, name it &#8220;line down&#8221;, and give it a key equivalent of command-control-down arrow.</p>

	<p>You of course don&#8217;t have to do all this with keyboard shortcuts, but it&#8217;s really impressive if you do <img src='http://onemanswalk.com/work/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>

 ]]></content:encoded>
			<wfw:commentRss>http://onemanswalk.com/work/2008/08/05/making-line-up-down-not-suck-in-textmate/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PhpUnit for TextMate</title>
		<link>http://onemanswalk.com/work/2008/07/18/phpunit-for-textmate/</link>
		<comments>http://onemanswalk.com/work/2008/07/18/phpunit-for-textmate/#comments</comments>
		<pubDate>Fri, 18 Jul 2008 23:55:00 +0000</pubDate>
		<dc:creator>jeremy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[testing]]></category>
		<category><![CDATA[textmate]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[	Who would have thought I&#8217;d be doing php?

	Anyway, yesterday I found myself doing php and really wanting it to hurt less.  I downloaded a textmate bundle for phpunit from github.  It wasn&#8217;t quite what I wanted, so I forked it and hacked it, and made it work a bit more like the rspec [...]]]></description>
			<content:encoded><![CDATA[	<p>Who would have thought I&#8217;d be doing php?</p>

	<p>Anyway, yesterday I found myself doing php and really wanting it to hurt less.  I downloaded a <a href="http://github.com/meritt/phpunit-tmbundle" title="">textmate bundle for phpunit</a> from github.  It wasn&#8217;t quite what I wanted, so I forked it and hacked it, and made it work a bit more like the rspec bundle.</p>

	<p>It now has:</p>

	<p>Commands</p>
	<ul>
		<li>run tests (in current file)</li>
		<li>run single test</li>
	</ul>

	<p>Snippets</p>
	<ul>
		<li>test</li>
	</ul>

	<p>And much to my surprise, it was way easy to do.  All in ruby, all with specs testing it.</p>

	<p>This article was going to be telling all y&#8217;all to come over to <em>my</em> cool fork of phpunit, but I sent the original author a pull request yesterday, and I just looked, and he&#8217;s pulled all my changes.  Rock!</p>

	<p>So go forth and enjoy the goodness that an extensible editor like textmate, oss code like the phpunit bundle, and github can bring about.</p>

	<p><a href="http://github.com/meritt/phpunit-tmbundle" title=""><span class="caps">PHP</span>Unit.bundle for textmate</a></p>

 ]]></content:encoded>
			<wfw:commentRss>http://onemanswalk.com/work/2008/07/18/phpunit-for-textmate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

