ssoroka / grepmate

Extremely fast search of rails projects or ruby source for code. Supports opening search results in textmate, browser (html), or as text.

This URL has Read+Write access

name age message
file .gitignore Fri Dec 05 09:34:02 -0800 2008 gemified [ssoroka]
file LICENSE Thu Jul 23 19:35:18 -0700 2009 new specs, refactored output in to their own cl... [ssoroka]
file README.rdoc Mon Jul 27 15:14:50 -0700 2009 update readme [ssoroka]
file Rakefile Thu Jul 23 21:47:00 -0700 2009 finish upgrade to 2.0, fix up gem install [ssoroka]
file VERSION Wed Jul 29 14:13:50 -0700 2009 Version bump to 2.0.5 [ssoroka]
directory bin/ Thu Jul 23 21:16:32 -0700 2009 specs passing, woot [ssoroka]
directory config/ Mon Jul 27 15:25:17 -0700 2009 make temp file location configurable [ssoroka]
file grepmate.gemspec Wed Jul 29 14:13:55 -0700 2009 Regenerated gemspec for version 2.0.5 [ssoroka]
directory lib/ Wed Jul 29 14:13:38 -0700 2009 actually process erb in yaml config [ssoroka]
directory spec/ Mon Jul 27 15:27:29 -0700 2009 update spec [ssoroka]
directory tmp/ Thu Jul 23 21:16:32 -0700 2009 specs passing, woot [ssoroka]
README.rdoc

Grepmate

Extremely fast search of rails projects or ruby source for code.

Supports opening search results in textmate, browser (html), or as text.

Usage

    NAME
      grepmate

    SYNOPSIS
      grepmate [what_to_search_for*] [dir=dir] [options]+

    PARAMETERS
      what_to_search_for (-1 ~> what_to_search_for)
          Search terms. Enclose in quotes to search for phrase. use with -e or
          --regex option for regular expression support
      dir=dir (-1 ~> dir)
          Directories to search. Defaults to project dirs.
      --case
          Case sensitive search (default is off).
      --textmate, -t
          open matches in textmate
      --html
          Turn on html output (default)
      --text
          show matches as text, file and line number
      --file_and_line, -f
          output only match file and line number
      --rails, -r
          Search Rails source, in addition to whatever is named by dir parameter
          etc.
      --only_rails, -R
          Search only Rails source, not the project. Takes precedence over dir
          parameter
      --gems, -g
          Search all gems, in addition to whatever is named by dir parameter
          etc.
      --only_gems, -G
          Search only gems, not the project. Takes precedence over dir parameter
      --wait, -w
          Wait between finds until TextMate file is closed. Only works with
          textmate output (--textmate or -t).
      --count, -c
          Display only the number of matches.
      --regex, -e
          use regular expression search terms
      --verbose, -v
          Turn on verbose mode and explain everything
      --help, -h

Authors

  • Steven Soroka
  • Zach Holt

To Do

  • check ~/.grepmate for current rails repo to use instead of always using latest