Reputation: 736
So I am using projectile as project management tool for emacs, and I can do projectile-ag in my emacs to lookup for terms. I however I would like to filter my search by the file extensions, for instance sometimes I would only like to view terms that matched in .java files and in some cases only the terms matched in .hql files. How can I achieve it?
(I can probably do it by grepping the ag buffer's results ofcourse - I am looking for a better way to do this - probably something like file masks in Intellij)
Upvotes: 4
Views: 1919
Reputation: 10274
Using the universal argument (C-u
) before invoking projectile-ag
(or some other projectile search commands) will present an args:
prompt, at which you can specify an ag
option like --java
.
Upvotes: 2
Reputation: 3516
If you would use ag
from the command line you could pass --java
as a parameter. If you use ag.el
you would have to call ag-files
and it will ask you about file type, then just type java
or hql
Upvotes: 2