helm-git-grep icon indicating copy to clipboard operation
helm-git-grep copied to clipboard

grep the output of helm-git-grep ?

Open pcompassion opened this issue 10 years ago • 5 comments

This is a feature request.

After executing C-c g [keywords], I'd like to narrow the search result by file name or extension.

How about providing a command (bound C-c u for example) to switch the search-scope from files to grep-buffers?

C-c g [keywords] C-c u [filename] C-c u [keywords]

(I know I can save the grep result and search there, but doing it at once is far better!)

pcompassion avatar Apr 05 '14 16:04 pcompassion

Hi @pcompassion.

Thank you for the suggestion. I will try it at the weekend. Please wait for some time.

yasuyk avatar Apr 07 '14 12:04 yasuyk

Hello @yasuyk

I guess you have been busy. greetings!

pcompassion avatar Jul 28 '14 03:07 pcompassion

@pcompassion you can turn your helm buffer into a grep buffer (F3), then run the function M-x hide-lines-not-matching.

joeheyming avatar Nov 25 '15 17:11 joeheyming

@joeheyming F3 doesn't save the helm buffer into a grep buffer. Can you tell me what C-h k F3 shows?

pcompassion avatar Apr 21 '16 13:04 pcompassion

When you are in the helm mini buffer, you start typing your grep, then hit TAB. Helm will show a list of actions that you can run on your helm mini buffer. One option is "Save results in grep buffer"

screen shot 2016-04-21 at 8 52 26 am

joeheyming avatar Apr 21 '16 15:04 joeheyming