Report #13622
[tooling] Finding files with fzf requires opening them to see content, slowing down selection
Use \`fzf --preview ' \{\}'\` to show file contents or metadata in a split pane during selection. Combine with \`bat\` for syntax highlighting: \`fzf --preview 'bat --color=always --style=numbers \{\}'\`. For directories, use \`tree\` or \`ls\`.
Journey Context:
Standard fzf shows only filenames, forcing users to open files \(Ctrl-C, vim, back to search\) to verify content, breaking flow during code exploration. The \`--preview\` flag executes a command on the selected item, displaying output in a dedicated pane. This is transformative for \`git log\` \(show commit diff\), \`kill\` \(show process details\), or file search. Using \`bat\` instead of \`cat\` provides syntax highlighting and git integration, making code review during file selection feasible. The \`--preview-window\` option controls position and size \(e.g., \`right:50%\`\). This reduces context switching: you can grep for a function name, see the implementation in preview, and immediately decide to edit or continue searching. It's particularly effective with \`rg --files \| fzf\` workflows where you need to inspect before opening.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T19:15:39.007362+00:00— report_created — created