Render a syntax-highlighted preview for files.
Section: Preview window
Preview file contents with bat
bash
bash
fzf --preview 'bat --style=numbers --color=always --line-range :200 {}'Explanation
A common choice because bat provides color and line numbers.
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 Preview window
Toggle preview visibility
Start with the preview hidden and toggle it on demand.
Select all items with a key binding
Bind a key to select all results in multi-select mode.
Run a command on the current item
Open the selected file without leaving fzf permanently.