Metadata-Version: 2.4
Name: verdiclip
Version: 1.4.0
Summary: Fast, faithful screenshot capture and annotation for Windows.
Keywords: screenshot,annotation,screen-capture,windows
Author: Mike Hill
Author-email: Mike Hill <mike@mikejhill.com>
License-Expression: MIT
License-File: ATTRIBUTION.md
License-File: LICENSE
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Win32 (MS Windows)
Classifier: Intended Audience :: End Users/Desktop
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Multimedia :: Graphics :: Editors
Classifier: Topic :: Multimedia :: Graphics :: Capture :: Screen Capture
Requires-Dist: mss>=10.2.0
Requires-Dist: pyside6-essentials>=6.11.2
Requires-Python: >=3.13
Project-URL: Homepage, https://github.com/mikejhill/verdiclip
Project-URL: Documentation, https://github.com/mikejhill/verdiclip#readme
Project-URL: Changelog, https://github.com/mikejhill/verdiclip/blob/main/CHANGELOG.md
Project-URL: Issues, https://github.com/mikejhill/verdiclip/issues
Description-Content-Type: text/markdown

# VerdiClip

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/mikejhill/verdiclip/main/docs/brand/wordmark-dark.png">
  <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/mikejhill/verdiclip/main/docs/brand/wordmark-light.png">
  <img src="https://raw.githubusercontent.com/mikejhill/verdiclip/main/docs/brand/wordmark-light.png" alt="VerdiClip — capture, annotate, deliver" width="320">
</picture>

[![CI](https://github.com/mikejhill/verdiclip/actions/workflows/ci.yml/badge.svg)](https://github.com/mikejhill/verdiclip/actions/workflows/ci.yml)
[![PyPI](https://img.shields.io/pypi/v/verdiclip.svg)](https://pypi.org/project/verdiclip/)
[![Python](https://img.shields.io/pypi/pyversions/verdiclip.svg)](https://pypi.org/project/verdiclip/)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/mikejhill/verdiclip/blob/main/LICENSE)

Fast, faithful screenshots for Windows: grab a precise piece of the screen, mark it up, and put it where it needs to go — in seconds.

![The VerdiClip editor in the dark theme, annotating a fictional weekend itinerary with numbered steps, a labeled callout, an arrow, and a highlight](https://raw.githubusercontent.com/mikejhill/verdiclip/main/docs/images/editor.png)

## Features

- **Capture** a region, a window, a monitor, or a whole scrolling page, from one key (`PrtSc`) or the tray. The screen freezes first, so you get exactly what you saw.
- **Annotate** with arrows, boxes with labels, numbered steps, highlights, pixelation, text and freehand; crop, rotate, flip and resize without losing your marks. Everything is undoable.
- **Deliver** to the clipboard, a file, or the printer, in any combination, automatically or from the editor.
- **Work in tabs**: each capture opens as a tab; drag tabs between windows.
- **Script it**: `verdiclip ctl` captures, edits, saves and closes images in the running app, and an installable skill teaches AI coding agents to use it.
- **Stays current**: updates itself from PyPI, and can be the Windows default image app.

VerdiClip is an independent project. See [ATTRIBUTION.md](https://github.com/mikejhill/verdiclip/blob/main/ATTRIBUTION.md) for credits.

![Capture a region, window, or screen; annotate with arrows, labels, and highlights; deliver to clipboard, file, or print.](https://raw.githubusercontent.com/mikejhill/verdiclip/main/docs/images/workflow.png)

## Install

Requires Windows 10 or later and Python 3.13+.

```bash
uv tool install verdiclip
```

Or with pip: `pip install verdiclip`. Then run `verdiclip` (or `verdiclip-gui` for no console window) and VerdiClip sits in the system tray.

### Updates

VerdiClip checks PyPI for a newer release a minute after it starts and every 6 hours after that. When it finds one and no image is open, it quits, installs the release, and starts again. A tray notification then says what changed. It updates the way you installed it:

| Installed with | Update |
| --- | --- |
| `uv tool install verdiclip` | `uv tool upgrade verdiclip` |
| `pip install verdiclip` (or `uv pip`) | Upgrade in that environment |
| `uvx verdiclip` | Fetch the release with `uvx`, then restart with it (the old version if that fails) |
| A git checkout (`uv sync`) | `git pull --ff-only` and `uv sync`, only on `main` with no local changes |

Tray → **Check for updates** opens a status window immediately. It stays visible with the result or an error; a failed check can be retried. Development versions that cannot be compared with stable releases say so explicitly. Settings → General turns off automatic checking, or automatic installing (VerdiClip then offers each release in a notification). If an update fails, the old version starts again and the notification names the log, `%APPDATA%\VerdiClip\update\update.log`.

## Capture

| Do this | Press |
| --- | --- |
| **Universal capture**: drag a region, click a window, hold keys for more (below) | `PrtSc` (or left-click the tray icon) |
| Capture the active window | `Alt+PrtSc` |
| Capture the monitor under the pointer | `Ctrl+PrtSc` |
| Repeat the last capture | `Shift+PrtSc` |
| Capture a scrolling area | `Ctrl+Alt+PrtSc` |

![The capture overlay: the frozen screen is dimmed, the window under the cursor is outlined with its title, and a magnifier shows the exact pixels](https://raw.githubusercontent.com/mikejhill/verdiclip/main/docs/images/capture.png)

While selecting, the screen is frozen so you get exactly what you saw. A magnifier follows the cursor, arrow keys nudge it by a pixel (`Ctrl` for 10), `Enter` starts and finishes a selection from the keyboard, and `Esc` or a right-click cancels.

Each capture opens as a new tab in the editor and brings it forward (Settings → Capture → **Open in the editor as** can open a new window instead). If a menu or dialog is open in the editor, the new tab waits behind it rather than interrupting you.

### Universal capture

`PrtSc` (tray: **Universal capture**) does most captures from one key:

- **Drag** to capture an area (it can span monitors).
- **Click** to capture the window under the pointer (or the monitor, on bare desktop).
- **Hold keys as you finish** to do more. Defaults:

| Keys | Click captures | Send to |
| --- | --- | --- |
| none | Window | Default (Settings → Capture) |
| `Ctrl` | Scroll: from here down | Default |
| `Alt` | Window | Clipboard only |
| `Shift` | Window | File only |
| `Ctrl+Alt` | Scroll: whole pane | Default |
| `Ctrl+Shift` | Scroll: from here down | File only |
| `Alt+Shift` | Window | Clipboard and file |
| `Ctrl+Alt+Shift` | Scroll: whole pane | Clipboard only |

A drag always captures the dragged area, so for a drag only **Send to** applies (`Alt`+drag copies the area to the clipboard without opening the editor). The keys count when you let go, and the on-screen label shows what will happen while you hold them. Change any row in **Settings → Modifiers**. These modifiers apply only to universal capture; every other capture (active window, full screen, Repeat, and the `Ctrl+Alt+PrtSc` scrolling chooser) uses the after-capture settings.

![Settings → Modifiers: what a click captures and where the image goes for each combination of Ctrl, Alt and Shift](https://raw.githubusercontent.com/mikejhill/verdiclip/main/docs/images/settings-modifiers.png)


If Windows or another screenshot tool already owns `PrtSc`, VerdiClip tells you which hotkeys are taken; everything is still available from the tray menu, and you can choose other keys in Settings.

### Scrolling capture

Capture a whole web page, document or list, not just what fits on screen:

| Start | Captures |
| --- | --- |
| `Ctrl+Alt+PrtSc` (or tray → **Capture scrolling area**), then click the panel | From the top (`Ctrl`+click: from where it is now) |
| `PrtSc`, then `Ctrl`+click the panel | From where it is now down |
| `PrtSc`, then `Ctrl+Alt`+click the panel | From the top |

VerdiClip scrolls the panel page by page to the bottom, joins the pages, and scrolls it back to where it was. Press `Esc` to stop early and keep what was captured so far. The image goes to your usual editor, clipboard and file settings.

It works with panels that support Windows UI Automation scrolling, which covers browsers, Office, Explorer, Settings and most modern apps. Sticky headers and footers appear once. A capture stops at 100 pages, 60 megapixels or 45 seconds and keeps what it has. If some pages could not be matched exactly, the image is still delivered and VerdiClip tells you to check it. Keep other windows off the panel while it runs. If nothing at the point scrolls, VerdiClip says why; **Copy last scrolling error** in the tray keeps the reason.

## Annotate

| Tool | Key | Tool | Key |
| --- | --- | --- | --- |
| Select | `V` | Text | `T` |
| Crop | `C` | Counter | `N` |
| Rectangle | `R` | Highlight | `H` |
| Ellipse | `E` | Obfuscate | `O` |
| Line | `L` | Freehand | `F` |
| Arrow | `A` | | |

| Action | Shortcut |
| --- | --- |
| Copy image and close | `Ctrl+Shift+C` |
| Save / Save as | `Ctrl+S` / `Ctrl+Shift+S` |
| Undo / Redo | `Ctrl+Z` / `Ctrl+Y` |
| Copy / Paste marks | `Ctrl+C` / `Ctrl+V` |
| Delete selection | `Delete` |
| Print | `Ctrl+P` |
| Previous / next tab | `Ctrl+PgUp` / `Ctrl+PgDown` (also `Ctrl+Shift+Tab` / `Ctrl+Tab`) |
| Move tab left / right | `Ctrl+Shift+PgUp` / `Ctrl+Shift+PgDown` |
| Zoom | `Ctrl+wheel` |
| Actual size / Fit | `Ctrl+0` / `Ctrl+Shift+F` |
| Pan | `Space`+drag |
| Bring forward / Send backward | `Ctrl+]` / `Ctrl+[` |
| Bring to front / Send to back | `Ctrl+Shift+]` / `Ctrl+Shift+[` |
| Nudge / Nudge faster | Arrows / `Ctrl`+Arrows |
| Rotate right / left | `Ctrl+R` / `Ctrl+Shift+R` |
| Flip horizontally / vertically | `Ctrl+Shift+H` / `Ctrl+Shift+V` |
| Resize | `Ctrl+Alt+I` |
| Back out one step | `Esc` |

- **Labels in boxes.** After drawing a rectangle or ellipse, just type — the text is centered and wraps inside it. Double-click (or `Enter`/`F2`) to edit later; `Esc` skips.
- **Bold, italic, or underline single words.** While typing in a text box or a box label, select words and press `Ctrl+B`, `Ctrl+I`, or `Ctrl+U` (or the **B**, **I**, **U** buttons). With no words selected, the buttons format all of the selected annotation's text.
- **Shift** draws squares, circles, and 45° lines.
- **Your styles stick.** Colors, fills, widths, and fonts you pick are remembered per tool for the next screenshot.
- **Rotate, flip, and resize** from the Image menu or the toolbar's Image button. Your marks turn and scale with the picture; text stays upright. Resize works on what you see (after cropping), in pixels or percent, keeping the aspect ratio unless you untick it.
- **Everything is undoable**, including crop, which never throws pixels away.
- **The quickest path**: draw, `Esc` until nothing is selected, `Enter` — the image is on the clipboard and the editor closes. Closing an image you haven't copied or saved asks first (you can turn this off in Settings → Editor).

![The same screenshot rotated left: the marks turn with the picture and the callout's label stays upright](https://raw.githubusercontent.com/mikejhill/verdiclip/main/docs/images/editor-rotated.png)

## Settings

Open from the tray menu or with `Ctrl+,` in any editor.

![Settings → Capture: after-capture actions can be combined](https://raw.githubusercontent.com/mikejhill/verdiclip/main/docs/images/settings-capture.png)

- **General** — grouped as Appearance (light, dark, or match-Windows theme), Windows (start at sign-in, the Start menu entry, Explorer's **Open with** menu for images, and **Make VerdiClip the default image app…**, which opens Windows Settings at VerdiClip's Default apps page, where you confirm it yourself), Updates (check for and install updates automatically), and Command line (let the `verdiclip ctl` command capture and edit images; **Install AI agent skill…** installs the `verdiclip ctl` skill for Claude Code, Codex, GitHub Copilot or the shared `.agents` folder).
- **Hotkeys** — validated as you type; conflicts are reported. Hover a field to see what its capture does.
- **Modifiers** — for each combination of `Ctrl`, `Alt` and `Shift` in [Universal capture](#universal-capture): what a click captures and where the image is sent (**Default** means the after-capture actions on the Capture tab); **Restore defaults** resets them.
- **Capture** — the magnifier while selecting; after capturing, any combination of: open in the editor, copy to the clipboard, save to the output folder; open new screenshots in the editor as tabs or windows; whether a tray notification says where each capture was saved or copied (errors and warnings always show).
- **Output** — folder (default `Pictures\Screenshots`), file-name pattern (`{date}`, `{time}`, `{title}`, `{counter}`; hover the field for what each one becomes; default `{date}_{time}_{title}`, where `{title}` is the captured window's title (spaces become `_` when the pattern has none), or *Screenshot* / *Screen* for region and full-screen captures; `{date}` and `{time}` are the capture time, even when you save later) with a live preview, format, JPEG quality (JPEG only).
- **Editor** — the starting color, width, and font for new annotations; whether closing an unsaved image asks first.

![Settings → General: Appearance, Windows (start at sign-in, Start menu, Open with, default image app), Updates, and Command line (the ctl switch and the AI agent skill installer)](https://raw.githubusercontent.com/mikejhill/verdiclip/main/docs/images/settings-general.png)

## Command line

Two command families:

- `verdiclip ctl …` drives the **running app** (everything, including scrolling captures and editing). Use this for scripts and AI agents.
- `verdiclip capture …` and `verdiclip open …` work **without the app running**: a one-shot capture to a file or the clipboard, or opening images in the editor.

```bash
verdiclip capture screen -o shot.png        # Standalone: every monitor
verdiclip capture region --region 0,0,1280,720 --clipboard
verdiclip capture window --delay 3
verdiclip open picture.png                  # Opens in the running instance if there is one
```

### Driving the running app (`verdiclip ctl`)

`verdiclip ctl` drives the running app: it captures, and reads, edits, saves and closes open images, unsaved edits included, and prints JSON. `verdiclip ctl --help` and `verdiclip ctl COMMAND --help` are the full reference.

```bash
verdiclip ctl capture window --title Edge   # Region, window, fullscreen or scrolling, into a new tab
verdiclip ctl capture scrolling --at 900,600 --from here
verdiclip ctl targets                       # Monitors and windows to capture
verdiclip ctl list                          # Every open image, in every window and tab
verdiclip ctl get --doc <id>                # Annotations, crop, selection, state
verdiclip ctl render --grid 100 -o view.png # PNG of the current state, gridded in image pixels
verdiclip ctl apply --ops edits.json        # Add, change, delete, crop, rotate: one undo step
verdiclip ctl history                       # Undo and redo steps, CLI ones marked
verdiclip ctl undo --only-cli               # Undo the last CLI step, never an editor step
verdiclip ctl open shot.png                 # Open a file in a new tab
verdiclip ctl save --path done.png          # Save, as the editor's Save would
verdiclip ctl export --path copy.jpg        # Write a copy; Save still uses the image's file
verdiclip ctl copy                          # Copy the image to the clipboard
verdiclip ctl close                         # Close the tab (--discard for unsaved changes)
```

Each `apply` is one undo step named "CLI: …" in the editor's Edit menu.

Teach your AI coding agent to use it by installing the VerdiClip skill: Settings → General → **Install AI agent skill…**, or from the command line (no running app needed):

```bash
verdiclip ctl install-skill --agent claude            # ~/.claude/skills/verdiclip/SKILL.md
verdiclip ctl install-skill --agent codex,copilot     # several agents at once
verdiclip ctl install-skill --agent agents --scope project   # .agents/skills in this folder
```

Agents: `claude`, `codex`, `agents` (the shared `.agents` folder), `copilot` (`~/.copilot/skills`, or `.github/skills` for a project). `--dir PATH` installs into any skills folder.

Only programs running as your Windows user can connect. Turn it off in Settings → General. See [docs/design/automation.md](https://github.com/mikejhill/verdiclip/blob/main/docs/design/automation.md).

## How it is built

Start with [docs/design/philosophy.md](https://github.com/mikejhill/verdiclip/blob/main/docs/design/philosophy.md): the core purpose, the principles, and the architecture. [docs/design/ux-contract.md](https://github.com/mikejhill/verdiclip/blob/main/docs/design/ux-contract.md) specifies every interaction; each item has an automated journey test.

In short: an edit session is an immutable base image, a non-destructive crop, and a list of immutable annotation values. The only way to change it is a command through the undo history, and one renderer draws both the canvas and the exported image.

## Development

Requires Windows 10+ and [uv](https://docs.astral.sh/uv/).

### Run from the checkout

Run `uv sync` once in the repository root, then double-click [Run-VerdiClip.bat](https://github.com/mikejhill/verdiclip/blob/main/Run-VerdiClip.bat) or run `.\Run-VerdiClip.ps1`. Both start the tray app from `.venv` without a console window and return immediately.

### Development commands

```bash
uv sync                  # Create .venv and install dependencies
uv run verdiclip         # Run the tray app
uv run poe               # List tasks
uv run poe fix           # Format and auto-fix lint
uv run poe check         # Format check, lint, strict type check, tests with coverage
uv run poe ux            # UX journey tests only
uv run poe ux-snapshots  # Journeys plus a PNG per step in docs/ux/snapshots
uv run poe ux-gallery    # Key screens in light and dark themes (docs/ux/gallery)
```

`uv run poe check` is the quality gate: ruff (broad rule set), ty with every rule at error, and pytest with ≥ 90% branch coverage. Regenerate the README screenshots with `uv run python scripts/ux_gallery.py --readme-dir docs/images`. Releases use automated verification, with physical smoke checks only for critical gaps; see the [release qualification policy](docs/releasing.md#before-merging-a-release-pull-request). See [CONTRIBUTING.md](https://github.com/mikejhill/verdiclip/blob/main/CONTRIBUTING.md) for commit conventions and releases.

## License

[MIT](https://github.com/mikejhill/verdiclip/blob/main/LICENSE)
