Hi. I'm a new user to ack, so it's very possible that I missed this in
the documentation, but how do you add files with a specific name (but
without a file extension) to a type?
I tried adding --type-add=mason=.mhtml,.mh,.md,autohandler,dhandler to
my .ackrc, but it still doesn't seem to be able to pick up the
autohandler or dhandler lines. These are actually mason files and it
would be invalid to add a file extension to them. I'm using App::Ack
version 1.88.
I'm sure that I'm missing something simple. If there is a better list
where I can direct my question, please let me know.
His problem is files that don't have an extension like "autohandler"
in Mason.
No, we don't have a way to address that yet.
> I'm sure that I'm missing something simple. If there is a better list
> where I can direct my question, please let me know.
>
> This has been addressed multiple times -- maybe we should have
> better docs?
Patches more than welcome. I'd love to have an ack FAQ, too.
xoxo,
Andy
--
Andy Lester => an...@petdance.com => www.theworkinggeek.com => AIM:petdance
> I'm sure that I'm missing something simple. If there is a better list
> where I can direct my question, please let me know.
>
> This has been addressed multiple times -- maybe we should have
> better docs?
I just realized I have a start to the FAQ in ack-base in the tree.
Feed me some questions & answers and I'll plug 'em in if you don't
want to mess with formatting and submitting a patch and all.
Thanks,
His problem is files that don't have an extension like "autohandler"
> I had problems with this, too. In your ~/.ackrc, you need to use
> type-set, not type-add. This is how I set a --log type in my
> ~/.ackrc
>
> --type-set=log=.log
in Mason.
No, we don't have a way to address that yet.
Patches more than welcome. I'd love to have an ack FAQ, too.
> I'm sure that I'm missing something simple. If there is a better list
> where I can direct my question, please let me know.
>
> This has been addressed multiple times -- maybe we should have
> better docs?
On Thu, Jun 25, 2009 at 11:35 AM, Andy Lester <an...@petdance.com> wrote:His problem is files that don't have an extension like "autohandler"
> I had problems with this, too. In your ~/.ackrc, you need to use
> type-set, not type-add. This is how I set a --log type in my
> ~/.ackrc
>
> --type-set=log=.log
in Mason.
He could to "handler" (no .) . That may pick up files you don't want, though/
No, we don't have a way to address that yet.
Patches more than welcome. I'd love to have an ack FAQ, too.
> I'm sure that I'm missing something simple. If there is a better list
> where I can direct my question, please let me know.
>
> This has been addressed multiple times -- maybe we should have
> better docs?
You keep saying that . .. :)
Any reason to lowercase the basename? That may be appropriate for
makefiles, but it doesn't generalize.
Besides that, your approach is much better than what I did to add cmake
support (matching .cmake & CMakeLists.txt)
> Sorry, no tests or documentation in this patch. If you're into the approach,
> I can write that stuff too.
I think tests are pretty much considered mandatory. :)
--
Exherbo KDE, X.org maintainer