Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

grep the output of helm-git-grep ? #9

Open
pcompassion opened this issue Apr 5, 2014 · 5 comments
Open

grep the output of helm-git-grep ? #9

pcompassion opened this issue Apr 5, 2014 · 5 comments

Comments

@pcompassion
Copy link

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!)

@yasuyk
Copy link
Owner

yasuyk commented Apr 7, 2014

Hi @pcompassion.

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

@pcompassion
Copy link
Author

Hello @yasuyk

I guess you have been busy.
greetings!

@joeheyming
Copy link
Contributor

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

@pcompassion
Copy link
Author

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

@joeheyming
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants