how to set a new file type to search? #1617
-
you can define a new type in Ackrc like "--type-set=inf:ext:inf", so i can search all the .inf file, however in rg option there is only "--type-add" ,i wander if you can define a file type to search. Thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
BurntSushi
Jun 12, 2020
Replies: 1 comment 1 reply
-
Yes. It's documented in the guide: https://github.com/BurntSushi/ripgrep/blob/master/GUIDE.md#manual-filtering-file-types In particular, you probably want to use |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
yylays
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes. It's documented in the guide: https://github.com/BurntSushi/ripgrep/blob/master/GUIDE.md#manual-filtering-file-types
In particular, you probably want to use
--type-add
in your configuration file: https://github.com/BurntSushi/ripgrep/blob/master/GUIDE.md#configuration-file