whatisgithub

What is trimmy?

steipete/trimmy — explained in plain English

Analysis updated 2026-08-08 · repo last pushed 2026-08-03

733SwiftAudience · developerComplexity · 2/5ActiveSetup · easy

In one sentence

Trimmy is a macOS menu-bar app that automatically flattens multi-line shell commands into a single line when you copy them, so pasting into a terminal runs as one clean command instead of several broken ones.

Mindmap

mindmap
  root((repo))
    What it does
      Flattens multi-line commands
      Strips prompt symbols
      Cleans markdown wrapping
      Removes URL tracking params
    Tech stack
      Swift
      macOS menu bar app
      TrimmyCLI for Linux
    Use cases
      Copy commands from tutorials
      Clean terminal output paste
      Strip URL tracking params
    Audience
      Developers
      System admins
      Terminal power users
    Privacy
      Fully local
      No telemetry
      No account needed

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Copy multi-line shell commands from tutorials and paste them as a single working command into your terminal.

USE CASE 2

Strip URL tracking parameters from copied links while preserving important ones.

USE CASE 3

Clean up hard-wrapped Markdown text or remove box-drawing characters from copied terminal output.

USE CASE 4

Use keyboard shortcuts to paste either the trimmed or original clipboard content on demand.

What is it built with?

SwiftmacOSTrimmyCLI

How does it compare?

steipete/trimmycoszone/moepeekjaywcjlove/swiftui-example
Stars733661658
LanguageSwiftSwiftSwift
Last pushed2026-08-032026-04-21
MaintenanceActiveMaintained
Setup difficultyeasyeasyeasy
Complexity2/51/52/5
Audiencedevelopergeneraldeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Requires macOS 15 or later, Linux users can use the included TrimmyCLI command-line version instead.

So what is it?

Trimmy is a macOS menu-bar app that solves an annoying problem: when you copy a multi-line shell command from a website or documentation and paste it into a terminal, the shell runs each line separately instead of waiting for the full command. Trimmy automatically flattens those multi-line snippets into a single line when you copy them, so your next paste runs as one clean command. Once installed, a small scissors icon sits in your menu bar. Trimmy watches your clipboard in the background, and when it detects a multi-line shell command, it rewrites the clipboard contents into one line. It's smart enough to leave regular text and code alone, using configurable sensitivity levels to distinguish shell commands from prose. It also strips out prompt symbols like $ that often precede copied commands, and it knows the difference between Markdown headings and command continuations. This is useful for anyone who regularly copies commands from tutorials, blog posts, or GitHub READMEs. If you've ever pasted a three-line printf command only to see it execute as three separate (and broken) commands, this is for you. It's especially handy for developers and system administrators who frequently work in terminals. Beyond command flattening, Trimmy can also clean up hard-wrapped Markdown, strip unnecessary URL tracking parameters while preserving important ones, and remove box-drawing characters from copied terminal output. The app offers manual control too: a "Paste Original" option lets you bypass trimming when needed, and both trimmed and original paste actions can be bound to keyboard shortcuts. It works with popular terminals like Terminal, iTerm, Ghostty, Warp, and others, and you can exclude specific apps or websites from automatic trimming. Everything stays local, there's no telemetry, no account, and no data leaving your machine beyond the update check. The project is built in Swift and requires macOS 15 or later. There's also a command-line version called TrimmyCLI for Linux or scripted use, and a community Alfred workflow exists for Alfred users.

Copy-paste prompts

Prompt 1
I keep pasting multi-line shell commands from GitHub READMEs into my terminal and they run as separate broken commands. How do I set up Trimmy to automatically flatten them into one line on copy?
Prompt 2
Help me configure Trimmy to exclude certain apps like my code editor from automatic clipboard trimming so it only fixes commands in my terminal.
Prompt 3
Show me how to use TrimmyCLI on Linux to flatten multi-line shell commands in scripts or piped input.
Prompt 4
I want to bind keyboard shortcuts in Trimmy so I can choose between pasting the trimmed version or the original clipboard content. How do I do that?

Frequently asked questions

What is trimmy?

Trimmy is a macOS menu-bar app that automatically flattens multi-line shell commands into a single line when you copy them, so pasting into a terminal runs as one clean command instead of several broken ones.

What language is trimmy written in?

Mainly Swift. The stack also includes Swift, macOS, TrimmyCLI.

Is trimmy actively maintained?

Active — commit in last 30 days (last push 2026-08-03).

How hard is trimmy to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is trimmy for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.