doggy8088

透過 macOS 上的 Karabiner-Elements 將剪貼簿文字去除縮排並以純文字貼上

12
0
100% credibility
Found May 11, 2026 at 12 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Rust
AI Summary

A clipboard tool that removes common leading whitespace from copied text and pastes it cleanly via a keyboard shortcut.

How It Works

1
🔍 Spot the pasting problem

You're copying code or text from a website or note, but when you paste it, extra spaces at the start of each line make it look messy and hard to use.

2
💡 Find dedent-paste

You discover this simple tool that smartly cleans up those extra leading spaces before pasting, keeping your text neat.

3
📥 Download and set up

Grab the easy setup file and run it—it places the tool on your computer and prepares a special shortcut.

4
⌨️ Get your magic key

It sets up Option+V as your new paste button, so one press handles the cleanup automatically on Mac.

5
📋 Copy messy text

Select and copy any indented code or block of text that needs tidying up.

6
Press and paste perfectly

Hit Option+V, and it instantly removes the common spaces, puts clean text in place, feeling like magic.

🎉 Clean pastes forever

Now every paste is perfectly formatted without extra indents, making editing notes or code a breeze.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 12 to 12 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is dedent-paste?

dedent-paste is a Rust tool that grabs your clipboard text, strips common leading whitespace (dedenting it like Python's textwrap.dedent), overwrites the clipboard with the cleaned plain-text version, and instantly pastes it via Cmd+V. It solves the daily annoyance of pasting indented code blocks, emails, or docs into editors/IDEs where you have to manually fix alignment. On macOS, pair it with Karabiner-Elements (works on macOS 10, 12, Catalina, Sequoia) by running the install.sh script, which binds Option+V to trigger it anywhere.

Why is it gaining traction?

It stands out with dead-simple Karabiner-Elements integration—no extra apps or config tweaks needed after install—and cross-platform support for Windows too, using native clipboard APIs. Developers love the zero-friction workflow: copy messy indented text from browsers or GitHub, hit Option+V, and it dedents precisely, ignoring blank lines while preserving tabs/spaces/CRLF. Built via cargo-dist for easy GitHub-hosted binaries, it's a lightweight macOS GitHub CLI companion for frequent copiers.

Who should use this?

Mac developers reliant on Karabiner-Elements for custom shortcuts, especially those copying code from GitHub repos, Stack Overflow, or Slack into VS Code or terminals. Windows devs pasting snippets into editors will appreciate the global hotkey paste. Ideal for backend/full-stack folks tired of re-indenting every multi-line paste during debugging or prototyping.

Verdict

Try it if you're deep into Karabiner-Elements setups—solid for its niche, with good test coverage on dedent logic—but at 12 stars and 1.0% credibility score, it's early-stage with minimal docs. Forkable Rust base makes it low-risk to tweak for your macOS GitHub workflow.

(178 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.