rking / ag.vim

Vim plugin for the_silver_searcher, 'ag', a replacement for the Perl module / CLI script 'ack'
1.74k stars 131 forks source link

Can't open files when searching with -g #68

Open jhofmeyr opened 10 years ago

jhofmeyr commented 10 years ago

:Ag -g "some_filename" shows matching files in quickfix window, but hitting "e" / "t" / whatever just opens an empty buffer.

losingkeys commented 10 years ago

This is because the errorformat string the plugin uses tells vim to look for line and column numbers. Because they're not there, vim has trouble jumping to the files. You can use :AgFile to add the -g flag. I'll leave this open so we can change the errorformat based on whether or not -g is given.

On Sep 18, 2014, at 7:44, jhofmeyr notifications@github.com wrote:

:Ag -g "some_filename" shows matching files in quickfix window, but hitting "e" / "t" / whatever just opens an empty buffer.

— Reply to this email directly or view it on GitHub.

jhofmeyr commented 10 years ago

:AgFile is exactly what I was looking for ... probably should rtfm instead of relying on google