Find bar in the sidebar text preview, with whole-file match counts for plain text and code, highlighted hits, and jumps between them.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:Makk9609/dsh-find-viewer
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
A find bar for the DeepSeek Harness sidebar's text preview, added to the document toolbar the preview already has. It searches the file, shows the match count, highlights the hits, and jumps between them.
English | 中文


What it does
- A magnifier button in the document toolbar, next to Open in app. It appears only while the pane shows a text file, so PDF, image, HTML, spreadsheet and Office previews keep their toolbar unchanged.
- A find bar with an input,
n/mcount, previous/next, match case (Aa), whole word (W) and close.Entergoes to the next hit,Shift+Enterto the previous one,Esccloses. Cmd/Ctrl+Fopens it while the preview is the pane you last clicked in.- Search a selection: select text in the preview, then open the bar — the selection becomes the keyword. A multi-line selection uses its first line; a selection longer than 200 characters is ignored.
- Hits are highlighted in the colours Edge and Chrome use for find-on-page: yellow
#FFFF00for hits, orange#FF9632for the current one, black text on both. Typing a keyword scrolls to the first hit.
Match counts
| Preview | Counts | Jump | Highlight |
|---|---|---|---|
| Plain text, code | Whole file, exact | Any line, including lines the viewer has not loaded yet | Every rendered hit |
| Markdown | The text currently rendered | Every rendered hit | Every rendered hit |
Markdown differs because the official Markdown view renders formatted HTML: source markers are gone and it exposes no per-line anchors, so a find bar over it can only count and jump within what is rendered — the count grows as more of the document loads. Plain text and code keep their source lines in the DOM, so those two count the whole file.
Files the bar covers: Markdown (.md, .markdown, .mdx), plain text and logs, and code
(.js, .ts, .py, .go, .rs, .java, .c, .cpp, .css, .json, .yaml,
.toml, .sh, .sql, and more). Spreadsheets (.csv, .tsv), HTML and SVG keep their
own previews. A file with no suffix, such as Dockerfile, is not covered, because the
viewer picks renderers by file suffix.
Install
From the npm registry:
dsh plugin --profile web add dsh-find-viewer
Straight from GitHub:
dsh plugin --profile web add github:Makk9609/dsh-find-viewer
Then restart dsh web. Alternatively install it from the Plugin Market or the Plugin
Manager, which also enables the bundle for you.
Remove it with:
dsh plugin --profile web remove dsh-find-viewer
How it works
The plugin has no build step and no runtime dependencies. Its browser half registers one
entry in the document toolbar's additive list slot
(sidebar.right.tab.document.actions), a slot that only appends, so no existing control is
replaced.
- Whole-file counting reads the file with the harness's own paged file Remote
(
remote.workspaceFiles.read), which is the same reader the preview itself uses. - Highlights use the CSS Custom Highlight API: the bar registers ranges and never edits the DOM the official renderers own.
- Jumping to a line the viewer has not loaded yet asks the sidebar to navigate to that line
(
sidebarRight.openResource), which makes the viewer load the pages it needs. - Locale lookups go through the client locale service (English and Chinese dictionaries are included).
It imports no harness client package as a module and registers no global keyboard handler;
Cmd/Ctrl+F is only intercepted while the preview is the pane you last clicked in.
Limits
- The whole-file scan covers the first 20,000 lines or 4 MiB, whichever comes first; the
find bar says so when a file is larger. Up to 3,000 hits are painted, and up to 50,000 are
counted (
50000+beyond that). - Highlights need the CSS Custom Highlight API (Chromium 105+, Safari 17.2+, Firefox 140+). Where it is missing, counts and jumps still work and hits are not painted.
- Matches do not span lines.
- Verified against DeepSeek Harness
0.2.0-rc.2. The plugin declares noengines.dshrange because its compatibility with later versions has not been tested.
Development
npm test # loads the browser half with stubs, then checks matching, address
# decoding, the registration shape and the emitted highlight rules
client.js is the whole browser half and index.js is an empty host half, which exists so
the loader carries the package.
License
MIT
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-task-board★ 10735
Task board for the dsh web GUI: a sidebar multi-column kanban whose cards run in real DSH agent sessions and can also be scheduled with cron expressions, executed host-side even with the browser closed.
zhu1090093659/dsh-web#packages/dsh-web-all★ 10735
Plugin and skin collection for the DSH Web UI: task board, Git graph, right-side panel, remote mobile UI, pet, live token stats, and a skin center.
ccch1mneyyy/dsh-TUI★ 8661
Claude Code-style full-screen terminal UI: pixel-whale header, live status line, and streaming thought expansion.
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 7538
A fixed-corner whale widget for the DSH web GUI — balance, today's usage and per-turn cost with peak/off-peak pricing, editable balance-alert and daily-budget bubbles, a module-based custom bubble queue with A/B weighted choices and random lines or images, 30+ vendor templates (OpenAI, OpenRouter, Kimi, SiliconFlow, Ark, Zhipu, MiniMax and more) with per-model balance and subscription quota, plus task-end sound, imported audio, custom roles and a resource manager. Local-only, no telemetry.
omdsh-dev/DSH-better-sidebar★ 5419
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
omdsh-dev/dsh-genui★ 1103
Interactive UI components rendered inline in replies: layout, charts, forms, quizzes, mermaid, 3D scenes, and an action event loop back to the model.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.