Text copied from terminals, markdown editors, and AI tools arrives full of formatting artifacts: soft-wrapped lines with leading spaces, multiple consecutive spaces, trailing whitespace, and excessive blank lines. Pasting into Google Docs or Slack produces messy results.
Tidy fixes it automatically. Copy text, paste clean text. No action needed.
Homebrew (recommended):
brew tap maferland/tap
brew install --cask tidyBuild from source:
git clone https://github.com/maferland/tidy.git
cd tidy
make installRun Tidy. An icon appears in your menu bar. That's it.
- Enabled/Disabled — Master toggle for all cleaning
- Start at Login — Run automatically when you log in
- Per-transform toggles — Enable/disable individual transforms
| Transform | What it does |
|---|---|
| Strip trailing ws | Removes trailing spaces/tabs from each line |
| Collapse spaces | hello world becomes hello world (preserves leading indent) |
| Unwrap paragraphs | Joins soft-wrapped continuation lines back into paragraphs |
| Trim indent | Strips common leading whitespace across all lines |
| Collapse blanks | Multiple blank lines become a single blank line |
Preserved: List items, headings, code fences, paragraph boundaries.
Tidy runs entirely on your Mac. No network requests. No data collection. No analytics.
- macOS 14 (Sonoma) or later
If Tidy cleans up your life, consider buying me a coffee:
MIT — see LICENSE
