Types with double extensions or type shadowing

17 views
Skip to first unread message

Gleb Peregud

unread,
Jan 26, 2012, 7:49:50 AM1/26/12
to ack-...@googlegroups.com
Hello

I would like to make ack ignore ".mako.py" which are files generated
by Mako templating system. Hence I've added the following lines in
~/.ackrc:

--type-set=makopy=.mako.py
--nomakopy

I hoped this would make ack ignore those files by default. It didn't work.

After some experimentation I found that ack seems to be treating
".mako.py" files just as ".py" files, hence "makopy" type is never
used.

Is there any way to make this work?

Unfortunately perl is not my strong side, so I couldn't find a
solution reading through source code.

Best regards,
Gleb Peregud

Andy Lester

unread,
Feb 7, 2012, 11:53:42 AM2/7/12
to ack-...@googlegroups.com

On Jan 26, 2012, at 6:49 AM, Gleb Peregud wrote:

Is there any way to make this work?

No, not in ack 1.x.  ack 2.0 will have more flexible specifications.

xoxo,
Andy

Reply all
Reply to author
Forward
0 new messages