Now try rg (ripgrep). It has a much more robust file ignore handling than ag in my experience.
When I last tried, ag couldn't handle this in .ignore file:
!foo.1
foo.*
That would ignore all foo.* files except foo.1 in rg.Also rg is a bit faster than ag for my use cases.