Yehuda Katz is a member of the Ruby on Rails core team, and lead developer of the Merb project. He is a member of the jQuery Core Team, and a core contributor to DataMapper. He contributes to many open source projects, like Rubinius and Johnson, and works on some he created himself, like Thor.

@joshatwork That will also be remembered for uses of Bundler.setup and other bundler facilities

Search within a folder in Textmate

Ever wanted to search within a folder (or multiple folders) directly within Textmate? If you’ve ever tried doing full-project search, you know that it’s painfully slow. Thanks to Henrik Nyh, you can use grep instead of the built-in search, but his version only work on the full project. If you want, for example, to constrain your search to just the app folder in a Rails project, you’d have to make a new Textmate project, and search within there.

To simplify things, I expanded Henrik’s original work to support file contexts. If you select one or more folders in the project drawer, the search will be constrained to the selected contexts. If you select more than one context, the results for each context will be displayed sequentially, so you’ll see, for instance, all the results within the “app” folder and all the results within the “config” folder cleanly demarcated.

As with the original plugin by Henrik, this version does not support regular expressions, but it does return the results as clickable textmate URLs, which is nice. It also rebinds the apple-shift-f key, but you can easily change that if you want.

My updates are available as a bundle called “Wycats” — I hope to update this plugin to support regex as well as release additional useful items in the bundle.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • DZone
  • LinkedIn
  • Netvibes
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • TwitThis

2 Responses to “Search within a folder in Textmate”

Does this work on the current implementations of TextMate? I would love to be able to search within folders.

Leave a Reply