SPC / a lot to find stuff inside a project. Since starting on Ruby
project, a lot of my search results, specifically the first ones are inside
the spec file (which is test case in Ruby)
I may want those instances as well, but more often than not, I prefer the search results in the source code before test cases.
The project is huge, and I have to scroll a lot before I see non-spec code, which becomes tiresome.
While I was looking for solution, I came across two things :
deadgrep(I think it is a play on
.ignore file is similar to
.gitignore which is specific to
While search tools like
.gitignore in my case, test
files are part of the git repo (as they should be) and are thus not in
This is where
.ignore came in handy.
*_spec.rb in a
.ignore file created in the root of the project.
Now search results are much better 😌