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

NickD
  • 27,023
  • 3
  • 23
  • 42
ruby_object
  • 427
  • 2
  • 12

1 Answers1

1

As Arkadiusz Drabczyk has suggested in his comment,

M-x occur

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

ruby_object
  • 427
  • 2
  • 12