1

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'?

5

1 Answer 1

1

As Arkadiusz Drabczyk has suggested in his comment,

M-x occur

is the best answer for my needs. Thank you very much!

1
  • You can accept your own answer. Jul 25, 2021 at 9:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.