I had to rename a bunch of variables in my current project and I wanted to know which files needed adjusting. Problem is, I’m on Windows, and searching for anything in Windows blows really hard. Even Google Desktop with the any-text-file-indexer wasn’t as helpful as I’d like. So, I wrote this tiny tiny plugin that gives you a command line search for your Rails project.
ruby script/plugin install http://svn.jcoglan.com/grape/trunk/grape
Because rake + grep = grape. I know, I’m brilliant, I know. Now I can regexp-search my whole Rails project from the command line:
rake grape q="chunky bacon"