pi-img-paste0.1.0
Image paste for Pi: the editor shows [fig1], sent messages get figure chips and thumbnails, click to view inside the terminal
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
pi-img-paste
English · 简体中文
Image paste for Pi. Ctrl+V shows [fig1], [fig2] in the editor; sent
messages end with figure chips; click a figure to view it inside the
terminal.
How it works
Pi's own Ctrl+V writes pasted clipboard images to
/tmp/pi-clipboard-<uuid>.<ext>. The editor shows [fig1], [fig2], and
so on immediately. On submit, the labels resolve to image paths:
- vision model: the image is attached, and the path stays in the text
as
[image: <path>]. - text-only model: the path stays in the text and reaches the model as text.
The transcript keeps the same session-scoped labels.
View
In Pi fullscreen with Kitty graphics and hyperlinks enabled, click a sent
figure link to view it inside Pi. Use the wheel or +/- to zoom, drag or
use the arrow keys to pan, and press 0 to fit. Press Esc or click
outside the image to close. Without Kitty graphics, Pi fullscreen opens
the file in the system viewer. In regular mode the terminal handles
hyperlinks. Without hyperlinks, the transcript shows plain labels.
Sent messages show figure chips at the end, side by side with wrapping. In Kitty fullscreen, visible chips include a small thumbnail.
Hover over a draft label or a sent figure link to preview a thumbnail in Kitty fullscreen. Typing, scrolling, or moving away within the same area closes it. It also closes after three seconds without a mouse move over the label.
Install
pi install npm:pi-img-paste
Two paste extensions can replace the same editor or process the same image
twice. To let another one handle pasting, turn this package off in
pi config.
License
MIT