Report #104216
[tooling] Need to quickly select files from a list with preview of their contents before acting.
Use \`fzf --preview 'cat \{\}'\` or \`fzf --preview 'bat --line-range :50 \{\}'\` to preview file contents. Pipe the selection to \`xargs\` or directly to an editor: \`vim $\(fzf --preview 'head -100 \{\}'\)\`.
Journey Context:
Plain \`fzf\` outputs only the selected path, leaving users to guess what's inside. The \`--preview\` flag shows a preview window \(e.g., first 100 lines, syntax-highlighted with \`bat\`\). The preview is updated in real-time as you scroll. Common mistake: not quoting \`\{\}\` in the preview command, which breaks with filenames containing spaces. It's far more efficient than opening files one by one.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-19T20:03:48.919127+00:00— report_created — created