mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-06-25 14:22:54 +02:00
@ -214,10 +214,11 @@ $ rg -Tjs foobar
|
|||||||
```
|
```
|
||||||
|
|
||||||
To see a list of types supported, run `rg --type-list`. To add a new type, use
|
To see a list of types supported, run `rg --type-list`. To add a new type, use
|
||||||
`--type-add`:
|
`--type-add`, which must be accompanied by a pattern for searching (`rg` won't
|
||||||
|
persist your type settings):
|
||||||
|
|
||||||
```
|
```
|
||||||
$ rg --type-add 'foo:*.{foo,foobar}'
|
$ rg --type-add 'foo:*.{foo,foobar}' -tfoo bar
|
||||||
```
|
```
|
||||||
|
|
||||||
The type `foo` will now match any file ending with the `.foo` or `.foobar`
|
The type `foo` will now match any file ending with the `.foo` or `.foobar`
|
||||||
|
Reference in New Issue
Block a user