macOS + Windows clipboard tool

Paste clean. Stay in flow.

dedent-paste removes the common indentation from your clipboard, rewrites the result as plain text, and pastes it immediately. Use Option+V with Karabiner-Elements on macOS, or Win+V with AutoHotkey on Windows.

macOS installer
curl -fsSL https://raw.githubusercontent.com/doggy8088/dedent-paste/main/install.sh | bash
Windows installer
irm https://github.com/doggy8088/dedent-paste/releases/latest/download/dedent-paste-installer.ps1 | iex

Releases include both shell and PowerShell installers. For AutoHotkey, prefer the fixed path %USERPROFILE%\.local\bin\dedent-paste.exe instead of waiting for PATH changes to refresh.

Installer pairShell for macOS, PowerShell for Windows Hotkey glueKarabiner-Elements or AutoHotkey Local clipboardNo server, no upload, no tracking
Clipboard before copied from docs
        fn paste() {
            let text = clipboard.read();
            let clean = dedent(text);
            clipboard.write(clean);
        }
Pasted after dedented
fn paste() {
    let text = clipboard.read();
    let clean = dedent(text);
    clipboard.write(clean);
}

Two platforms, clear setup paths.

Pick the stack that matches your machine. The README separates macOS and Windows install, setup, and usage steps so you can wire up the right shortcut without guessing.

macOS Karabiner + Option+V

Run the shell installer, let it add the Karabiner rule, and allow Accessibility access if macOS asks.

Windows PowerShell + AutoHotkey

Run the PowerShell installer, then bind Win+V with AutoHotkey v1 or v2. Want clipboard history too? Remap it to Alt+V or another key.

PATH Prefer fixed paths for hotkeys

Installers can update PATH, but shortcut tools are more reliable when they launch the installed binary directly.

A tiny tool for oversized paste moments.

Fast, precise, and made for people who move text all day. One shortcut removes the messy shared indent while leaving your normal paste shortcut untouched on each platform.

01 / Shortcut One key chord

Karabiner-Elements maps Option+V on macOS. AutoHotkey can map Win+V on Windows, or another shortcut if you want to keep clipboard history.

02 / Release Easy release downloads

GitHub Releases publish shell and PowerShell installers, platform archives, and checksums for common targets.

03 / Clipboard Plain text, UTF-8 safe

The clipboard is read as text, written back as UTF-8, then pasted with macOS System Events or a simulated Ctrl+V on Windows.

code blocks Markdown LLM prompts terminal snippets issue comments documentation