Meowrium/dsh-sidebar-image-zoom ↗★ 0
dsh-sidebar-image-zoom
DSH 右侧边栏图片预览缩放与拖拽平移插件
AI 分析
核心用途是增强右侧边栏的图片预览体验。适合需要对工作区图片进行鼠标滚轮缩放(光标锚定)、鼠标拖拽平移、一键适应窗口或 1:1 还原的用户。需要 DSH 0.1.5+。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Meowrium/dsh-sidebar-image-zoom說明文件
閱讀完整 README ↗Usage
| Action | Result |
|---|---|
| Mouse wheel | Zoom in/out, anchored at the cursor — the pixel under the pointer stays put |
| Drag | Pan (once the scaled image is larger than the pane) |
| Double-click | Toggle 适应窗口 ↔ 1:1 |
适应窗口 | Fit the whole image in the pane |
适应宽度 | Fit to pane width only |
1:1 | Original size, one image pixel per screen pixel |
+ / − | Step zoom |
+ / - / 0 / 1 | Same, 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.