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

File name search #48

Closed
kaushalmodi opened this issue Sep 24, 2016 · 2 comments
Closed

File name search #48

kaushalmodi opened this issue Sep 24, 2016 · 2 comments

Comments

@kaushalmodi
Copy link
Contributor

I have noticed that the rg -g option is like ag's -G option. But rg seems to be missing ag's -g option.

I use ag -g heavily as find command as I believe it is faster than find and the .agignore applies there too.. so no need to provide a complex ! \( -regex -o ..\) command to find.

If I want to get a list of all *.sv files, I would do ag -g '\.sv'.

Can that option please be added to rg?

It would be even more awesome if the meanings of -g and -G synced up between the two.

@BurntSushi
Copy link
Owner

Does -g 'glob' --files meet your criteria?

@kaushalmodi
Copy link
Contributor Author

That works. Thanks!

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

2 participants