Ag works fine most of the time. But sometimes, I want to do a search in, say, all XML files by using --xml, but not any .dtd files. Unfortunately, ag looks at .dtd files when asked to examine --xml.
I tried as a wild guess ag --no-dtd. Doesn't work. The --ignore options aren't for this.
I know there's a ~/.agignore file, but being absent minded and often interrupted, I don't want to bother edit that for just one or two searches and have to remember to put it back. I'm looking for a one-off easy way to avoid a certian file type.
Other examples could be wanting to look at C++ files but wanting to see only .c, .cpp, .cxx and such but not .h or .hpp, for just one time.