← Catalog

pi-clipboard-paste

Paste copied file paths (space-separated), clipboard images, and text in pi on Windows via Ctrl+V or Alt+V

Extension

Install

Install with PiG

pig install npm:pi-clipboard-paste

Install with Pi

pi install npm:pi-clipboard-paste
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./extensions/clipboard-paste.js"
  ],
  "changelogPath": "./CHANGELOG.md"
}

README

Written by the package's publisher, shown as published in version 1.0.0 (README.md). PiG does not review it.

pi-clipboard-paste

Paste copied files, clipboard images, and text into pi on Windows with one keystroke.

pi install git:github.com/dado1234ad/pi-clipboard-paste@main
  • Several files copied in Explorer → their full paths, separated by spaces
  • Copied image (screenshot, snip, bitmap) → saved to a temp PNG, path pasted
  • Plain text → pasted as-is

Paths are used instead of embedding the image inline: they stay lazy, render in the transcript, and degrade gracefully on text-only models.

Requirements

  • Windows 10/11
  • pi 1.5 or newer
  • Optional: a terminal that forwards Ctrl+V to the app (see Keybindings)

Install

Install straight from GitHub — pi clones it and keeps it updated:

pi install git:github.com/dado1234ad/pi-clipboard-paste@main

Then run /reload inside pi (or restart it).

To try it without adding it to your settings:

pi -e git:github.com/dado1234ad/pi-clipboard-paste@main

Manual install

Clone into your pi agent directory:

git clone https://github.com/dado1234ad/pi-clipboard-paste.git \
  "$HOME/.pi/agent/packages/pi-clipboard-paste"

Add the package to ~/.pi/agent/settings.json:

{
  "packages": ["./packages/pi-clipboard-paste"]
}

Keybindings

The extension registers both ctrl+v and alt+v. Windows terminals reserve Ctrl+V for their own paste action, so whether Ctrl+V reaches pi depends on your terminal:

  • Windows Terminal — Ctrl+Shift+V is bound to paste by default. Either use Alt+V, or rebind the terminal's paste action away from ctrl+v.
  • conhost / legacy console — same caveat.

To avoid the startup "Extension shortcut conflict" warning, unbind the built-in paste action in ~/.pi/agent/keybindings.json:

{
  "app.clipboard.pasteImage": []
}

How it works

Node cannot read Windows' file drop list (CF_HDROP), so bin/clipget.exe is a tiny persistent helper that does:

  • first paste: ~130 ms while the helper starts
  • later pastes: ~0.5 ms

If the helper binary is missing, the extension falls back to a one-shot Get-Clipboard -Format FileDropList PowerShell call (~700 ms). src/clipget.cs is the helper source; rebuild it with the .NET Framework C# compiler if you change it.

Images and text are read through pi's native clipboard support (@earendil-works/pi-tui), which is why no extra tooling is needed for screenshots.

Uninstall

Remove the package from ~/.pi/agent/settings.json, delete the folder, and restore the built-in paste by removing the app.clipboard.pasteImage entry from ~/.pi/agent/keybindings.json.

License

MIT © DarkNeptune