DSH Plugins Marketplace

DSH Plugins

Plugins

/

Tools & Capabilities

/

dsh-sidebar-image-zoom

M

dsh-sidebar-image-zoom

Manifest valid

dsh plugin: zoomable, pannable image preview for the right-sidebar document pane (wheel zoom anchored at cursor, drag pan, fit / 1:1). / dsh right-sidebar image preview zoom plugin

UI (client)hasBundlePatchMachine translated

dsh-sidebar-image-zoom

A DeepSeek Harness (dsh) plugin that makes the images in the right-sidebar document pane zoomable.

dsh's built-in image preview is deliberately static — its own source says the image is rendered "without fitting or scaling them to the pane", at intrinsic size, with the surrounding body providing scrolling only. That is fine for icons and painful for big screenshots, diagrams, and charts. This plugin replaces that renderer with one you can actually navigate.

中文说明 / Chinese README

Install

dsh plugin --profile web add github:Meowrium/dsh-sidebar-image-zoom

Restart dsh web, then open any image in the right sidebar (new tab → 工作区文件 / workspace files → pick an image).

Requires the dsh 0.1.5 line (this was developed and verified against 0.1.5-rc.1). The right-sidebar document preview this plugin extends does not exist before 0.1.5.

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.

How it works

It uses only official extension points — no monkey-patching, no private DOM attributes:

  • ctx.documentPreviews.register({ id, extensions, priority: 'extension', loading: 'bytes-complete' }) — the registry's own docs say "External implementations win over product implementations", so the extension band takes over the eight image suffixes (png jpg jpeg gif webp bmp ico svg).
  • ctx.slots.register({ name: 'sidebar.right.tab.document', key: <id> }, Body) — the keyed document-body seat, under the same id.

The body receives the file as complete bytes (content.kind === 'bytes'), turns them into a Blob URL (always revoked on unmount), and renders its own zoom/pan viewport.

Package layout

package.json       dsh.bundle.patch → cordis.patch.yml ; dsh.client → lib/client.js
cordis.patch.yml   inserts the bundle entry
lib/index.js       host half (no-op — this plugin is browser-only)
lib/client.js      browser half — the renderer and the zoom body

Notes

  • The plugin only adds interaction; it does not change how images are loaded or where they come from.
  • Uninstalling it restores dsh's built-in behaviour, because the built-in definition is still registered underneath — this one just outranks it.
  • All listeners, styles, observers and object URLs are released on unmount; there is no residue after closing the tab.

License

MIT

Comments

Loading…

Similar plugins

dsh-image-viewer

by WSL043

Upgrades DSH image viewing with pointer-centered zoom, pan, galleries, downloads, keyboard support, and inline region notes (Beta).

Vision & MultimodalTools & CapabilitiesManifest valid

★ 1

↓ 3.1k/wk

MIT

JavaScript

Sep 29, 2026

dsh plugin --profile web add dsh-image-viewer

A file-view enhancement plugin that extends the official DSH sidebar, providing source view, in-place editing, line number display, search, and font zoom.

UI & ExperienceManifest valid

★ 2

MIT

JavaScript

dsh plugin --profile web add dsh-sidebar-plus

by kbpoyo

DSH 插件:让纯文本模型也能看图。Web 端直接粘贴图片即可发送,无需指定图片路径;模型自主调用视觉技能查看,多模态模型原生直通,零skill绑定。

Manifest valid

★ 5

↓ 34/wk

MIT

JavaScript

Aug 14, 2026

dsh plugin --profile web add @kbpoyo/dsh-image-bridge

by zemul

dsh-better-sidebar 的视频文件预览插件: 在侧边栏打开 .mp4 .webm .mov .mkv .avi 等视频文件时,内联渲染一个可播放、可拖拽进度条的 <video> 播放器。

Development & InfrastructureManifest valid

★ 5

↓ 1k/wk

MIT

JavaScript

Aug 27, 2026

dsh plugin --profile web add dsh-video-preview

by Hoemr

QuickLook-style space-key large preview for DSH better-sidebar: press Space on the active file tab for an instant image/PDF/text overlay

UI & ExperienceManifest valid

★ 0

MIT

TypeScript

Aug 24, 2026

dsh plugin --profile web add dsh-quicklook

by FuzzySoul

为DSH(DeepSeek Harness)量身打造的视觉插件,现已支持agent调用图片显示/Vision plugin for DSH(DeepSeek Harness),support Proactive Image Display.

Vision & MultimodalManifest valid

★ 8

↓ 374/wk

MIT

JavaScript

Aug 19, 2026

dsh plugin --profile web add dsh-free-vision