For me, ack is a necessary kit (its nickname, and I use it a million times a day). It basically has everything I need, so I believe this behavior is covered, and I just can't find it.
I would like to limit it to specific file types with a type. the problem is that these files have the full file name and not the extension. For example, I would like to limit it to building files for buildr so that I can search for them with --buildr (Similarly applies to mvn poms). I have the following in my .ackrc
--type-set=buildr=buildfile,.rake
The problem is that the "buildfile" is the full name of the file, not the extension, and I would like ack to exactly match that name. However, if I look at the types associated with 'buildr', this shows that the .buildfile is an extension, not the whole file name.
--[no]buildr .buildfile .rake
The ability to restrict a specific file name will be really useful for me, since there are many xml applications (e.g. ant build.xml or mvn pom.xml ) for which this would be ideal. I see that binaries, Makefiles and Rakefiles have a special type configuration, and maybe this is the way to go. I really would like to be able to do this, if possible, before resorting to user-defined functions. Does anyone know if this is possible?
ack
sgargan
source share