ag.vim icon indicating copy to clipboard operation
ag.vim copied to clipboard

Can't open files when searching with -g

Open jhofmeyr opened this issue 10 years ago • 2 comments

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

jhofmeyr avatar Sep 18 '14 12:09 jhofmeyr

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 [email protected] 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.

losingkeys avatar Sep 18 '14 12:09 losingkeys

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

jhofmeyr avatar Sep 18 '14 13:09 jhofmeyr