Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unrecognized option --filename #6

Closed
madtrick opened this issue Mar 20, 2015 · 4 comments
Closed

Unrecognized option --filename #6

madtrick opened this issue Mar 20, 2015 · 4 comments

Comments

@madtrick
Copy link

Hi,

I've just installed the plugin and after triggering a search in Vim (with :Ags something) the ag executable just complained about the --filename option. Here is an screenshot of the output (where you can also see the version of ag I'm running):

1__tmux

@gabesoft
Copy link
Owner

@madtrick yea you need ag version 0.29.1 or better. Alternatively, you can try to remove filename from g:ags_agargs but I'm not sure what the search results will look like in that case.

@madtrick
Copy link
Author

Oh sorry, I didn't see the version requirement on the README https://github.com/gabesoft/vim-ags#notes

I'll try removing the --filename option and see what happens. Thanks for your time

@gabesoft
Copy link
Owner

I've tried using ag 0.27.0 and it seems to work fine. All you have to do is add this to your .vimrc

       let g:ags_agargs = {
                \ '--break'             : [ '', '' ],
                \ '--color'             : [ '', '' ], 
                \ '--color-line-number' : [ '"1;30"', '' ],
                \ '--color-match'       : [ '"32;40"', '' ],
                \ '--color-path'        : [ '"1;31"', '' ],
                \ '--column'            : [ '', '' ],
                \ '--context'           : [ 'g:ags_agcontext', '-C', '3' ],
                \ '--group'             : [ '', '' ],
                \ '--heading'           : [ '', '-H' ],
                \ '--max-count'         : [ 'g:ags_agmaxcount', '-m', '2000' ]
                \ }

No ---filename and no --numbers

@madtrick
Copy link
Author

@gabesoft thanks though I ended up upgrading to 0.29.1 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants