On 7/31/23 2:03 PM, Andy Lester wrote:
>> On Jul 31, 2023, at 3:40 PM, Brian L. Matthews <
blmat...@gmail.com> wrote:
>>
>> $ ack -l -r --nopager checkboxClass .
>> $ ack -l -r --nopager checkboxClass *
>> jquery.uniform.min.js
>>
>>
>> Minified Javascript files are automatically ignored by ack. See "ack --dump" to get a list of what those exclusions are.
Ok. I had done an ack --dump but was mainly looking at the types so I
missed the ignore-file. That explains it.
>> (Really, you should just run ack without the . because ack assumes . for the directory)
I normally do, just included it here to be super clear. Same for -r. I
usually just "ack pattern".
>> In the case where you "ack whatever *", you are passing a list of files to ack to check. If you specify a filename on the command line, then ack assumes you know what you are asking to check, and bypasses the filtering logic.
Yeah, makes sense that if I give it a file on the command line, it
should search that file.
On 7/31/23 2:41 PM, Bill Ricker wrote:
Thanks Bill for the longer explanation, and for verifying what I'd
figured, that there isn't really a good workaround. I always want to
search minified files, and would like to continue to use my normal "ack
pattern", so would like something I could throw in my .ackrc.
Andy, have you considered a --noignore-file options? I could see a
couple of ways it could work, either turn off a --ignore-file if a
--noignore-file is given with an exactly matching right-hand side (and
if there is no corresponding --ignore-file, maybe give a warning), or
collect the --noignore-files and if a file matches a --ignore-file,
match it against the --noignore-files.
Anyways, thanks for your responses!
Brian