-t, --type TYPE ...
Only search files matching TYPE. Multiple type flags may be provided. Use the --type-list flag to list all available
-g, --glob GLOB ...
Include or exclude files for searching that match the given glob. This always overrides any other ignore logic if
there is a conflict, but is otherwise applied in addition to ignore files (e.g., .gitignore or .ignore). Multiple
glob flags may be used. Globbing rules match .gitignore globs. Precede a glob with a '!' to exclude it.
The --glob flag subsumes the functionality of both the --include and --exclude flags commonly found in other tools.
Values given to -g must be quoted or your shell will expand them and result in unexpected behavior.
Combine with the --files flag to return matched filenames (i.e., to replicate ack/ag's -g flag). For example:
rg -g '*.foo' --files