Jake Worth

Jake Worth

Silver Searcher RDoc Support

Published: October 30, 2015 • Updated: March 20, 2023 2 min read

  • ruby

Today I submitted my first pull request to The Silver Searcher project:

PR #782

Silver Searcher is a fantastic command line search tool. I used it recently to find one-line Ruby getter methods:

ag 'def (\w+);?\s+@\1;?\s+end'

My pull request adds support for the .rdoc filetype, which is common in many Ruby projects like Rails. If it gets merged, the following search will be scoped only to .rdoc files.

ag 'search string' --rdoc

This pull request allowed me to write and test in C, something I’ve never done before. I hope that this feature will allow programmers to more easily navigate documentation from the command line. In a large project like Rails, a flag that can cut through the noise should be helpful.

What are your thoughts on this? Let me know!


Join 100+ engineers who subscribe for advice, commentary, and technical deep-dives into the world of software.