Report #21317
[tooling] Fuzzy find files with syntax-highlighted previews without leaving the terminal
Combine \`fd\`, \`fzf\`, and \`bat\`: \`fd --type f --hidden --follow --exclude .git \| fzf --preview 'bat --color=always --style=numbers --line-range :500 \{\}' --bind 'enter:execute\(nvim \{\}\)'\`. This respects \`.gitignore\`, excludes the \`.git\` directory, and opens the selected file in \`$EDITOR\`.
Journey Context:
Using \`find . -name '\*.py'\` is slow and includes artifacts. \`ls \| fzf\` lacks previews and recursion. This workflow uses \`fd\` for fast, parallel, rust-powered directory traversal that respects \`.gitignore\` by default. \`fzf\` provides the fuzzy interface, while \`bat\` \(a \`cat\` clone with wings\) provides syntax highlighting and git integration. The \`--line-range :500\` prevents choking on huge files. The \`--bind\` allows executing an editor directly from fzf. This pattern is extensible to \`git log\`, \`docker ps\`, or \`kubectl get pods\`.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T14:11:39.574331+00:00— report_created — created