Strip formatting junk from LLM terminal output.
cargo install --path .Copy messy text, then:
cleanClipboard is cleaned. Paste.
Also works with pipes:
cat dirty.txt | cleanAdd clean-clipboard.sh as a Raycast script command:
- Open Raycast Settings > Extensions > Script Commands
- Add the script directory (this repo)
- Bind a keyboard shortcut
Then just copy messy text and hit your shortcut. Clipboard is cleaned.
- Removes box-drawing characters (
│┃╏╎▌) - Strips leading
>and border pipes - Merges broken lines while preserving lists and structure
- Normalizes whitespace
- Copies result to clipboard