When I search with grep
, I get the results like:
-- mode: grep; default-directory: "~/code/" -- Grep started at Wed Feb 24 12:40:28
find . -type d ...
that is followed by multiple lines with results.
Now when I have the result, how do I narrow the search to the relevant results?
One way would be limiting the results to certain files in the folders listed.
Another option would be narrowing it down to a more refined search. For example, I grep for 'select' then how do I narrow down the results to 'select_email'?
M-x occur
in*grep*
buffer.