TextMate tip - scope your project!
September 21, 2006 @ 01:31 PMIf 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).