Show me how to use the ripgrep and fzf command line tools together.
- User
Show me how to use the ripgrep and fzf command line tools together.
Assistant
Here are some examples of how to use ripgrep (rg) and fzf together from the command line:
Search currently directory and filter results with fzf:
rg --files --hidden | fzfSearch recursively in current directory and filter results:
rg --files --hidden . | fzfSearch for a string in all files and filter results:
rg 'search string' | fzfSearch for string, open selected file:
rg 'search string' | fzf -q 'search string' | xargs vimSearch recursively for string, preview selected file:
rg --preview 'search string' | fzf -pSearch recursively, filter results and open in default app:
rg --files --hidden . | fzf | xargs open
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.