iBrasten

My methods of calculating time are far superior to yours, in every way.

 

This is the blog of Brasten Sager, a freelance software developer, Mariners fan, guitarist, haphazard philosopher.

TextMate tip - scope your project!

September 21, 2006 @ 01:31 PM

If there’s one tool that I cannot live without these days, it’s TextMate. In particular, the “mate” command has been a lifesaver. A simple “mate .” command in my Rails directory and I’m on my way!

The downside to that approach is that often I do not need to focus on the entire application. Sometimes having the entire Rails project visible/available in TextMate can create mental clutter (upper screenshot).

So I tried creating several aliases for “mate” that open just the files I’d most likely need for a particular case. For example, most of my development now is done using this alias:

alias mt="mate app/controllers/ \
          app/models/ app/views/ test/ \
          db/migrate/ config/routes.rb" 

Now, “mt” in my project directory gives me a TextMate project with only the most relevant directories and files (lower screenshot).

1 Responses to “TextMate tip - scope your project!”

  1. Brilliant - Now... if I could only keep my macbook on long enough to use that. ;-)

    Ajo