You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
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
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
The text was updated successfully, but these errors were encountered: