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

ag.vim doesnot support multiple file types search #73

Closed
alexandnpu opened this issue Nov 25, 2014 · 4 comments
Closed

ag.vim doesnot support multiple file types search #73

alexandnpu opened this issue Nov 25, 2014 · 4 comments

Comments

@alexandnpu
Copy link

the silver searcher itself now supports multiple file types.
like ag --cpp --cc *** to seach both cpp files and c files.
but now ag.vim does not support that.

@losingkeys
Copy link
Collaborator

Try :Ag --cpp --cc search.

Mixing the filetype specific options (like --cc) and file patterns (like **/*, I'm not sure if ag/the shell thinks *** is a file pattern or a search pattern).

Let me know if you're still having issues with this. It worked for me with ag 0.27.0 and ag.vim d3a00f8 (the latest as of this writing).

@alexandnpu
Copy link
Author

my silver searcher is also ag version 0.27.0.

actually, i use :Ag --cpp --cc what_I_want code_path

The issue is still there.

@losingkeys
Copy link
Collaborator

Odd. Can you link me to a project this fails on? I'm having difficulties reproducing it. Also can you confirm this works from the command line? They should be consistent, as this wrapper is just running that command.

@alexandnpu
Copy link
Author

its weird. now its working now.
I can't link you to the project, as it is our company's code.

but Ag --cpp --cc and Ag --cc --cpp have different results.
I should look into the issue of silver searcher.

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