back to projects

2026 Systems & CLI AUR · Open Source

clipcmp

Fast CLI diff utility for files and consecutive clipboard copies.

clip[0] · sha256 diff clip[1] · sha256

Why it exists

Comparing two JSON payloads, config snippets, or logs copied from different tabs usually meant creating temporary files or pasting into untrusted web diff tools.

Architecture

A lightweight Python utility that checks fast SHA-256 equality before delegating visual diff output to `git diff --no-index`, supporting whitespace-insensitive (`-w`) and quiet exit-status (`-q`) modes.

Key highlights

  • Zero-argument watch mode (`clipcmp`) listens for the next two clipboard copies and diffs them automatically.
  • Supports `-w/--ignore-whitespace` and `-q/--quiet` flags for scripting.
  • Packaged and installable on Arch Linux via AUR (`yay -S clipcmp`).

Built with

Python · Shell · SHA-256 · Git Diff