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
?
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.
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.
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).
精彩评论