I've got the syntax of adding a new ack-grep
filetype:
$ ack-grep --type-add=min=.min.js,.min.css --help types | grep min
--[no]min .min.js .min.css
But the problem is that it doesn't seem to ever match any files, possibly because my extensions (.min.js
/ .min.css
) have 2 dots in them.
$ touch test.min.js
$ ack-grep --min -f
[nothing returned]
So how can I make ack-grep
recognise a filetype with 2 dots in it? And if that's not possible how can I search js and css files without matching minified versions?