Published: October 30, 2015 • Updated: March 20, 2023 • 2 min read
Today I submitted my first pull request to The Silver Searcher project:
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!
Join 100+ engineers who subscribe for advice, commentary, and technical deep-dives into the world of software.