Define and use the type in the same command.
Section: Type filters
Add a custom type and search it immediately
bash
bash
rg --type-add 'web:*.{html,css,js,ts,tsx}' -t web 'aria-' .Explanation
The custom definition only applies to this invocation unless you put it in config.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Type filters