Sam 山
Sam 山

Reputation: 42863

Textmate cmd + t search. How to include directories

I've always worked on small enough apps where I did not need to include a directory for Textmate cmd + T searching. Now I'm working on a huge app; swear to god it has 100 route files. Have no idea why.

So now if I to a search for routes.rb, I get 100 results. What I want is to include the directory config so I don't get so many results.

How can I include directors in Textmate cmd + T searches such as config/routes.rb?

Upvotes: 4

Views: 823

Answers (3)

Lecrte
Lecrte

Reputation: 276

I think 'Go To File' may work for you: https://github.com/amiel/gotofile.tmbundle/

If you download it via GitHub, be sure to rename it to remove the hash at end of the extracted folder, so it's something like: 'amiel-gotofile.tmbundle' which you can just double click to install.

Upvotes: 3

hibbelig
hibbelig

Reputation: 538

Maybe you will like the GoToFile bundle. It's like Command-T but the search string is matched on the directory name and file name, not just on the file name part.

Upvotes: 7

Chuck
Chuck

Reputation: 4902

If you drag a folder from the Finder onto TextMate's icon in the dock, it will open that folder up as a project. You can then search the files within it using Edit>Find>Find in Project (Shift-Cmd-F).

Upvotes: 0

Related Questions