'ag' can restrict the search to certain types of files e.g.: ag --html <keyword> Supported types can be listed with: ag --list-file-types Proposed patch adds *.ebuild and *.eclass to supported types so one cat use ag --ebuild <keyword> insted of ag --file-search-regex '.*\.ebuild' <keyword> Reproducible: Always
Created attachment 385602 [details, diff] the_silver_searcher-0.24.1-ebuild-type.patch
Created attachment 385604 [details] the_silver_searcher-0.24.1-r1.ebuild
Submitted upstream: https://github.com/ggreer/the_silver_searcher/pull/503 Upstream is pretty friendly and good with supporting patches so we'll do this via upstream without carrying a distro-specific patch if at all possible.
This patch was accepted by upstream. Will close this issue once a release is made and the version is bumped in Gentoo.
Upstream has merged the PR in question. I'm closing this.
Also forgot to mention that the ebuild has long since been updated.