Globs, Types, and Ignore Rules/Exclude one file type

Search everything except Markdown.

Section: Type filters

Exclude one file type

bash
bash
rg -T md 'TODO' .
Explanation

This is useful when docs generate too much noise during code-focused searches.

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
Search only Rust files
Use a built-in type definition.
OpenIn sheetbashsame section
Define a custom file type on the command line
Create a reusable ad hoc type mapping.
OpenIn sheetbashsame section
Add a custom type and search it immediately
Define and use the type in the same command.
OpenIn sheetbashsame section
Inspect all known types
View the file globs behind built-in types.
OpenIn sheetbashsame section
Exclude generated files
Skip minified files during search.
OpenIn sheetbash2 tag match
Search only JavaScript files
Restrict matches to paths matching a glob.
OpenIn sheetbash1 tag match