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

Needs to have command line option opposite of --with-filename #20

Closed
jikamens opened this issue Sep 23, 2016 · 4 comments
Closed

Needs to have command line option opposite of --with-filename #20

jikamens opened this issue Sep 23, 2016 · 4 comments
Labels
enhancement An enhancement to the functionality of the software.

Comments

@jikamens
Copy link

There needs to be a way to disable the file name prefix even when multiple files are being searched.

@BurntSushi
Copy link
Owner

Could you help motivate this by describing a use case? Thanks!

@jikamens
Copy link
Author

I sort of thought the use case was obvious: I want to see matches for a given pattern in a bunch of files but I don't care what files the matches are in. For example, if I want to search for log entries matching a pattern in a bunch of compressed log files which are split up only so they don't get too big, then each matching log line fully identifies everything I need to know about it in the log line itself; I don't care about the file name when looking at the results.

@BurntSushi BurntSushi added the enhancement An enhancement to the functionality of the software. label Sep 23, 2016
@BurntSushi
Copy link
Owner

That's perfect, thank you. :-)

@BurntSushi
Copy link
Owner

This is done. I added the --no-filename flag.

amsharma91 added a commit to amsharma91/ripgrep that referenced this issue Sep 27, 2016
When this flag is set, a filename is never shown for a match.

Closes BurntSushi#20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement to the functionality of the software.
Projects
None yet
Development

No branches or pull requests

2 participants