Meowrium/dsh-sidebar-image-zoom0

dsh-sidebar-image-zoom

DSH plugin: zoomable, pannable image preview for the right-sidebar document pane. Adds wheel-zoom (cursor-anchored), drag-pan, fit / fit-width / 1:1, and a zoom readout to the images dsh already shows. / dsh 右侧边栏图片预览缩放插件。

包名
dsh-sidebar-image-zoom
版本
0.1.0
许可证
MIT
最近更新
2026年9月10日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Meowrium/dsh-sidebar-image-zoom

Usage

ActionResult
Mouse wheelZoom in/out, anchored at the cursor — the pixel under the pointer stays put
DragPan (once the scaled image is larger than the pane)
Double-clickToggle 适应窗口 ↔ 1:1
适应窗口Fit the whole image in the pane
适应宽度Fit to pane width only
1:1Original size, one image pixel per screen pixel
/ Step zoom
+ / - / 0 / 1Same, from the keyboard (0 = fit, 1 = 1:1)

The image opens at 1:1 by default, matching the built-in feel; a percentage readout sits in the toolbar. Zoom range is 10 % – 1200 %. When the image is smaller than the pane it is centred; when larger, panning is clamped so you cannot drag it out of view.