On Fri Aug 18 12:52:35 2006, MARKSTOS wrote:
Show quoted text> If the only match is in the current directory, --nogroup will fail to
> prepend the file name to the match. For example, try finding a match in
> a Changes file:
>
> ack -a --nogroup Stosberg Changes
This could have been confusing about when "show_filename" is turned on.
Adding "-H" also solves this for me. You can close this bug.
It may be helpful to document that this is what to put in a .vimrc file
to use ack instead of grep for searching there:
set grepprg=ack\ --nogroup\ -H
That was the context I was using it when I got the surprising result.
( Vim always expects the file name to prepended but ack apparently tries
to be "smart" about this, and prepends by default sometimes and not
others... )
Mark