Report #103842
[tooling] I want to fuzzy-find files and preview their contents without leaving the terminal
Use fzf --preview ' \{\}' with a preview renderer such as bat --color=always \{\}. Control layout with --preview-window \(e.g. right:60%:hidden\) and add toggles like --bind 'ctrl-/:change-preview-window\(hidden\|\)'.
Journey Context:
Plain fzf returns a filename you still have to inspect separately. A preview window turns file selection into a quick browse workflow, especially when combined with bat for syntax highlighting or eza for directory trees. fzf automatically single-quotes \{\}, but the preview command must still make sense for the input type. Do not put --preview into FZF\_DEFAULT\_OPTS because that assumes every list is files; it will break for processes, shell history, git branches, or other non-path inputs.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-13T04:47:53.251900+00:00— report_created — created