Report #30657
[tooling] Selecting files/branches/commits blindly in fzf without previewing content or diff context
Use \`fzf --preview 'bat --color=always \{\}'\` \(or \`git show --color \{1\} \| delta\`\) to render a live preview pane showing file contents or commit diffs during selection.
Journey Context:
Standard \`fzf\` usage \(\`git branch \| fzf\`\) only shows the branch name, forcing the user to context-switch or select based on memory. The \`--preview\` flag executes a command for each selected item, displaying output in a side pane. For files, \`bat\` \(or \`cat\`/\`head\`\) shows syntax-highlighted content. For git branches, \`git log --oneline -10 \{1\}\` shows recent commits. For git hashes, \`git show --color \{1\} \| delta\` shows the diff with syntax highlighting. This transforms \`fzf\` from a simple picker into an interactive exploration tool. The tradeoff is execution time for slow preview commands, but fzf caches and limits concurrency. Use \`--preview-window\` to adjust size or position.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T05:50:25.223891+00:00— report_created — created