lumendigitaldev-pi-wsl-images

内容来源:README.md(说明文档) · 原始地址 · 查看安装指南

原始内容

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