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

Feature: sticky file-search-regex #193

Closed
danielb2 opened this issue Apr 24, 2013 · 3 comments
Closed

Feature: sticky file-search-regex #193

danielb2 opened this issue Apr 24, 2013 · 3 comments

Comments

@danielb2
Copy link

One if the things that makes me going back to use ack is the ability to group files by type.

For example: ack --ruby pattern

It would be nice if I were able to define my own file extensions to be able to search for so I don't have to keep using --file-search-regex to define a pattern each time.

I'm thinking something for example in .agrc

[file-search-regex:ruby]
( *.erb | *.rb )

ag --scan=ruby pattern

btw, I couldn't figure out the syntax for file-search-regex so sorry if that's wrong. Maybe an example in the manpage would help? And instead of .agignore you could use an [ignore] section of the config file

@ggreer
Copy link
Owner

ggreer commented Apr 24, 2013

This is pretty much a duplicate of #128. I don't know if/when I'll ever get around to it.

@ggreer ggreer closed this as completed Apr 24, 2013
@silouanwright
Copy link

That's fine, but maybe you can mention in the docs that this doesn't support the full feature set of ack? When I first tried this out, it was billed as a replacement, and I spent a very long time trying to find the documentation for finding files by type, only to find it didn't exist and that the_silver_searcher isn't so much similar to ack as it is just a super fast global text search.

@danielb2
Copy link
Author

danielb2 commented Jun 3, 2013

👍

I too spent time wading through docs to find references to this.

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