Config and Shell Integration/Find candidate files with fd, then search with rg

Combine fast file discovery with fast content search.

Section: Git and toolchain workflows

Find candidate files with fd, then search with rg

bash
bash
fd -e ts -e tsx src | xargs rg 'useQuery\('
Explanation

`fd` is great at path selection while ripgrep excels at content matching.

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 Git and toolchain workflows
Search tracked files only
Restrict ripgrep to files known to git.
OpenIn sheetbashsame section
Search only changed files
Pipe a changed-file list into ripgrep.
OpenIn sheetbashsame section
Use ripgrep for live fuzzy-finder reloads
Power an interactive search UI in fzf.
OpenIn sheetbashsame section
Open ripgrep results in Vim quickfix
Feed matches into an editor workflow.
OpenIn sheetbashsame section
Point ripgrep at a config file
Set a path that ripgrep reads for default arguments.
OpenIn sheetbash1 tag match
Emit vimgrep-style results
Print `file:line:column:text` output for editors.
OpenIn sheetbash1 tag match