-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Can't add a new type, keep getting ''Invalid arguments". #15
Comments
Could you show precisely the command you're running and the full output? I wonder if I messed up the docs. It looks like comma separated globs aren't supported, but they probably should be. Using |
I have just built ripgrep using the stable rust (rg was bumped to 0.1.17) with no effect.
Sure:
I use ZSH, but I've also tried bash to make sure it's not a shell issue. |
Does adding a single glob at a time work for you? If it does, I'll try to debug this issue tomorrow with my setup. |
Running |
I haven't been able to add a type either. Tried a bunch of stuff:
I'm on os X el capitan (10.11.6) and Installed it with the homebrew command in the readme. |
You need to provide a pattern to search. Ripgrep doesn't save any state or config anywhere. --type-add only applies to the current command. |
Ahh, I guess I misunderstood from the documentation. I thought it would add it to the list of types returned by |
@hodavidhara That sounds right yes! I'll work on improving the docs. :-) |
I indeed expected |
My kinda-sorta intention is to see how far we can get with configuring "default" options just by using aliases. So for example, |
Yes, that use-case makes sense, I haven't thought about it before. |
I also was confused and assumed custom types persisted. Seeing --type-add, --type-clear and --type-list, I assumed add persisted since there was a clear operation |
Trying to add a new type results in the "Invalid arguments." error followed by the usage message.
I have tried the example from README (
rg --type-add 'foo:*.foo,*.foobar'
) and some other patterns.My environment:
The text was updated successfully, but these errors were encountered: