rg

ripgrep (rg) recursively searches directories for a regex pattern.

Search with sort displaying only file names

$ rg -l '// TODO' --sort path

Search within Markdown files only

$ rg -t md '@format'

Search in files with path matching

$ rg -g 'parser-*.js' '// TODO'