Report #66527
[tooling] Viewing files with cat loses syntax highlighting and git change indicators
Use bat \(or batcat\) as a cat replacement: \`bat file.rs\` shows syntax highlighting, line numbers, and git modification gutters \(\+/-\). For scripting compatibility, use \`bat -p\` \(plain mode\) which acts like cat but preserves syntax highlighting if output is to a terminal.
Journey Context:
cat dumps raw text, forcing developers to open editors just to read code structure or check if a file is modified. bat integrates with git to show uncommitted changes in the margin, adds line numbers for reference, and supports 150\+ languages for syntax highlighting. It intelligently pipes to less if output exceeds one screen but preserves colors, eliminating the \`git diff \| less -R\` workaround.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T18:08:46.897164+00:00— report_created — created