fzf Reload, Event Bindings, and Dynamic Sources/Use fzf as a frontend for ripgrep

Run a new ripgrep search whenever the query changes.

Section: Reload patterns

Use fzf as a frontend for ripgrep

bash
bash
fzf --ansi --disabled --query '' --bind 'start:reload:rg --column --line-number --no-heading --color=always {q} || true' --bind 'change:reload:rg --column --line-number --no-heading --color=always {q} || true' --delimiter=':' --preview 'bat --color=always --highlight-line {2} {1}'
Explanation

This pattern is one of the most powerful advanced fzf workflows for live content search.

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 Reload patterns
Reload a process list on demand
Refresh the data source with a key binding.
OpenIn sheetbashsame section
Switch between multiple data sources
Bind keys that swap the prompt and reload command.
OpenIn sheetbashsame section
Refresh a changing preview
Force the preview command to rerun.
OpenIn sheetbashsame section
Rewrite the query dynamically
Change the query from a binding.
Update preview label dynamically
Show context-sensitive labels as focus moves.