Improving TextMate "Go To File" function

11 August 2010 on Tips and Tricks

Go to file is just one of the most helpful tools.

I've been working with TextMate for almost a month now, and there's a thing that i just hate: When you use "Go To File (Command + T)" you are not able to specify the folder of the file, in a small project you barely note that, but when things get huge it makes a big difference.

To make it clear, let's think you have a project with 2 scaffolds, cars and bikes. If you try to find the "index.html" using the Default "Go To File", you will see that:

You just see a list of all files called "index", but what if you want to specify the cars/index? Sounds useless when you have 2 or 3 index...but you will love that when your project gets huge. I just found a bundle for TextMate in github for that, to install is pretty easy:

cd ~/Library/Application\ Support/TextMate/Bundles/
git clone git://github.com/amiel/gotofile.tmbundle.git GoToFile.tmbundle

Restart your TextMate, to open the new go to file press "Command + Shift + K":

If you prefer take a look at github, and if you have a better solution, please let me know.

Edited

There's also peepopen from PeepCode. It's a great plugin for just $9.