dreammaker2016/dsh-file-menu
dsh-file-menu gives the DSH Web client the right-click menus it lacks: a Codex-style menu that fits whatever you clicked - Copy for selected text, Cut/Copy/Paste in an input, Copy path / Reveal in file manager / Open with for a file reference, Copy link / Open in browser for a link - resolving relative workspace paths against the current session root.
dsh-file-menu gives the DeepSeek Harness Web client the right-click menus it lacks (the shipped client has no contextmenu handler). It builds a Codex-style menu that fits whatever you clicked: selected text offers Copy; a paragraph with no selection offers Copy this paragraph; an input or editable area offers Cut / Copy / Paste / Select all; a file reference (delivered-file card, produced-file chip, inline file mention) offers Copy path, Reveal in file manager and Open with default app; and a link offers Copy link address and Open in browser, with Alt + right-click showing element diagnostics. Copy goes through the host route /file-menu/clipboard (Electron main-process clipboard, falling back to PowerShell Set-Clipboard) rather than the renderer clipboard permission, and Reveal selects the file where the OS supports it (Windows Explorer /select, macOS Finder open -R). File paths are read from the element's attributes or its own text - DSH renders in-workspace references relative to the session workspace, so relative candidates are resolved against the session root, and the file rows are hidden rather than guessed when no root is available.
Install
dsh plugin --profile web add @z1995418/dsh-file-menuCopied verbatim from the README's Install block (the npm form). The README also documents dsh plugin --profile web add github:dreammaker2016/dsh-file-menu and a release-tarball form. npm package @z1995418/dsh-file-menu at 0.8.1 (registry check 2026-10-16; the registry repository field resolves back to this repo).
Compatibility
The host half is a webServer prefix route /file-menu serving ping, status, hello, menu, diag, clipboard, reveal and open; reveal/open take { path, base }, resolve absolute paths directly, ~/... against the home directory and relative paths against base, and act only on paths that exist. The client half is a capture-phase contextmenu handler plus a plain-DOM menu (no React dependency) using pointerdown + elementFromPoint so an upstream stopPropagation cannot swallow the click. The two halves version independently: the client is versioned with the package while the host half reports its own version from GET /file-menu/status.
Details
- Repo: dreammaker2016/dsh-file-menu
- Category: Web UI Enhancements
- Stars: 1
- Version: GitHub repo dreammaker2016/dsh-file-menu (1*); npm package @z1995418/dsh-file-menu at 0.8.1 (registry check 2026-10-16; the registry repository field resolves back to this repo). MIT licensed. English README with a README.zh.md Chinese translation and a DEVELOPMENT doc.
Alternatives
0lidaxiang/dsh-plugin-greet · 147228/dsh-black-whale · 15828148/dsh-portable-launcher