@lumendigitaldev/pi-wsl-images

extensionmaintained

[Alt+V] WSL image paste support for pi using the Windows clipboard

by · v1.0.1 · published 2mo ago

$ pi install npm:@lumendigitaldev/pi-wsl-images
downloads/mo
0
stars
1
last push
2mo ago
open issues
0

Signals

license: MITtestspi manifest: missinginstall size: —deps: 0peer deps: 0

Download trend

427 downloads · last 12 weeks (weekly)

README

pi-wsl-images

A pi extension for WSL that makes Alt+V paste an image from the Windows clipboard into pi.

Instead of showing the temp file path in the editor, it inserts placeholders like [Image #1], then replaces them with the real temp image paths when you submit.

Install

Install from npm so it works with pi anywhere in WSL:

pi install npm:@lumendigitaldev/pi-wsl-images

For local development from this repo, run:

pi install .

After changes during development, run /reload or restart pi.

Use

  • Alt+V — paste a Windows clipboard image into pi as [Image #n]
  • /wsl-paste-image — test the clipboard pipeline manually

How it works

  • Reads the native Windows clipboard via powershell.exe
  • Writes the image to the WSL temp directory as .png
  • Inserts [Image #n] in the editor, with numbering reset for each submitted message
  • Replaces placeholders with real temp image paths at submit time

Notes

  • Intended for WSL only
  • If Alt+V does not reach pi in your terminal, use /wsl-paste-image first to verify the clipboard pipeline