Searching, improved with The Silver Searcher
The Silver Searcher by Geoff Greer is a tool which aims to take searching to the next level. Installation is simple:
brew install the_silver_searcher
If you aren’t on a Mac, or using homebrew, there are other installation instructions on the README. Using it is very straightforward, especially if you have used ack (or grep) in the past:
ag stringtofind ~/code
I know what you’re thinking, what is ag
? Well, Ag is the chemical symbol for silver, and it’s a lot easier to type than the_silver_server
, so Geoff went with it! There are a number of features that make The Silver Searcher worth giving a try:
- Speed: 3-5x faster than ack
- It honors .gitignore, .hgignore, and .agignore
ag
is 33% shorter thanack
(admittedly this is silly, but you can't argue the facts!)
Discussion
Sign in or Join to comment or subscribe