dsh-file-menu
Manifest valid★ 1No project description is available for this repository yet.
dsh-file-menu
Right-click menus for the DeepSeek Harness (DSH) Web UI.
The DSH Web client ships no contextmenu handler, so right-clicking inside the app does nothing useful — no copy,
no paste, no "open file location". This plugin adds a Codex-style menu that fits whatever you clicked.
English | 简体中文
Features
The menu is built from the element under the cursor:
| Right-click target | Menu rows |
|---|---|
| Selected text | Copy |
| A paragraph (no selection) | Copy this paragraph |
| Input box / editable area | Cut · Copy · Paste · Select all |
| A file reference (delivered-file card, produced-file chip, inline file mention) | Copy path · Reveal in file manager · Open with default app |
| A link | Copy link address · Open in browser |
| Alt + right-click | Diagnostics: copy element info |
- Copy goes through the host route
/file-menu/clipboard(Electron main-process clipboard, falling back to PowerShellSet-Clipboard) instead of relying on the renderer's clipboard permission. If the host route is unavailable, the client falls back todocument.execCommand('copy'). - Reveal in file manager selects the file where the OS supports it — Windows Explorer
/select, macOS Finderopen -R. On Linuxxdg-openhas no "select" concept, so the containing directory is opened instead. If the host route is missing entirely, the client falls back to DSH's own/open-in-app/open. - File paths are read from the element's
title,data-path,data-file-path,dataset.*path, the element's own text (DSH's tool-row file links carry no attribute at all — the path is only in the text), or a selected absolute path. DSH renders in-workspace references relative to the session workspace (dsh-plugins/x/README.md,@docs/plan.md), so relative candidates are resolved against the current session's workspace root, which the client half reads from DSH'ssessionsservice (list.getSnapshot()→byId[current].cwd).~/...is expanded by the host half. When no root is available the file rows are simply not shown rather than guessed.
Install
From npm:
dsh plugin --profile web add @z1995418/dsh-file-menu
From source:
dsh plugin --profile web add github:dreammaker2016/dsh-file-menu
Every release also carries a prebuilt tarball
(dsh-file-menu.tgz), installable with dsh plugin --profile web add <tarball-url>.
Use the profile you actually run (web for the Web client, your own profile name for DSH Desktop). Restart DSH after
installing.
Uninstall
dsh plugin --profile web remove dsh-file-menu
Limits
- A relative path that appears inside running prose is recognized only when it is a single token (no whitespace), contains a path separator, and its last segment carries a file extension. Paths with spaces, bare basenames, and extension-less directories are skipped — that is what keeps ordinary sentences ("copy/paste this") from growing file actions.
- Relative candidates need the session workspace root. If DSH's
sessionsservice is unavailable, the file rows are hidden instead of guessed. - The two halves version independently: the client (
lib/client.js) is versioned with the package, while the host half reports its own version fromGET /file-menu/status.
How it works
- Host half
lib/index.js— awebServerprefix route/file-menuservingping,status,hello,menu,diag,clipboard,revealandopen.reveal/opentake{ path, base }, resolve absolute paths directly,~/...against the home directory and relative paths againstbase(the session workspace root), then act only on paths that exist. - Client half
lib/client.js— a capture-phasecontextmenuhandler plus a plain-DOM menu (no React dependency), withpointerdown+elementFromPointactivation so an upstreamstopPropagationcannot swallow the click. cordis.patch.yml— the single bundle row that registers the host half. The client bundle is served automatically because the host entry declaresdsh.client.
Maintainer notes — HMR pitfalls, event-swallowing, debugging without a browser console — are in docs/DEVELOPMENT.md.
License
MIT
Comments
Loading…
Similar plugins
Right-click files, folders, web links, and workspaces in the DeepSeek Harness chat and sidebars to reference, copy, preview, open in a chosen app or browser, reveal, or save.
★ 0
dsh plugin --profile web add dsh-file-context-menuby jidekaixin2dian
Right-click any file reference in the chat to open it, open it with an associated application, reveal it in the file manager, copy its path or contents, and save it.
★ 8
↓ 808/wk
MIT
JavaScript
Nov 21, 2026
dsh plugin --profile web add @jidekaixin2dian/dsh-file-actionsby XcodeFish
Adds a right-click menu on file references in chat output, listing registered applications with icons for open-with, revealing files in the file manager, and copying absolute or relative paths resolve
★ 1
MIT
JavaScript
Oct 1, 2026
dsh plugin --profile web add @codefisher798/dsh-file-link-menuby InnovationLou
Right-click menus for DeepSeek Harness chat links: open with an application, reveal in the file manager, copy the path, save a copy, and open or copy URLs.
★ 0
MIT
JavaScript
Oct 20, 2026
dsh plugin --profile web add dsh-link-actionsby nubeslove
DSH Web 插件:给文件引用加右键菜单(打开文件 / 在资源管理器定位 / 浏览器预览 / 复制路径)。Right-click actions for file mentions in DeepSeek Harness.
★ 0
MIT
JavaScript
Oct 20, 2026
dsh plugin --profile web add dsh-file-actionsby tangu2023
Adds a custom right-click context menu to the sidebar workspace files tree, with new folder, rename, reveal in file manager, open in browser, open in VS Code, copy path, streaming ZIP download, and de
★ 1
MIT
JavaScript
Oct 8, 2026
dsh plugin --profile web add dsh-menu