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 down Ruby getter methods:

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

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

$ ag 'contributing' --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!

Get better at programming by learning with me! Join my 100+ subscribers receiving weekly ideas, creations, and curated resources from across the world of programming.