Introduction¶
When developing in DeepSeek Harness (DSH), the file tree, paths in chat, @file references, and hyperlinks are part of the daily workflow. The native context menu provided by the DSH desktop shell is primarily aimed at editable input fields and selected text; right-clicking on the right-side “Files” tree, path strings in conversations, workspace project names in the left sidebar, or arbitrary links often fails to provide context-appropriate actions. The community plugin dsh-right-click-menu (maintainer Ignareo) intercepts right-clicks by area within the page to supplement file and link capabilities, while leaving other surfaces to the native menu.
What is this¶
dsh-right-click-menu is a client-side bundle plugin for the DSH Web GUI that pops up a merged context menu in locations such as the file tree, chat paths, workspace projects, and hyperlinks. The package name and Loader registration ID are both dsh-right-click-menu. The version listed in current materials is 0.4.0, licensed under MIT.
This repository is an independent merged version: the functional base comes from AL1ghtm3ter/dsh-right-click-menu, while workspace rows, file tree roots, and test engineering improvements come from SJcun/dsh-right-click-menu. It has no affiliation with either upstream project; see COMPARISON.md in the repository for a detailed comparison.
Plugin directory page: SkillHub - dsh-right-click-menu. Source code and documentation: GitHub - Ignareo/dsh-right-click-menu.
Core Features¶
The verified capabilities are described below based on “where to right-click and what happens.”
Covered Right-Click Surfaces¶
| Where to right-click | What happens |
|---|---|
| Rows in the right sidebar “Files” tree | File operation menu; folders additionally have “Expand in File Tree” |
| File tree header / empty space | File operations for that directory |
| File paths appearing in chat (body text, inline code) | Checks if the file exists first, then pops up the file menu |
@file / @folder file mentions in chat |
File menu |
| Document path labels, changed file review rows | File menu |
| Workspace project names in the left sidebar | File operations for that workspace directory |
| Arbitrary hyperlinks | Link menu; if the link points to a file, the file menu is added |
The File Menu includes: Preview in DSH, Expand in File Tree, Open with Default Application, “Open With ▸” (associated programs found by the host), Reveal in File Explorer, Copy Path / Relative Path / File Name / File Contents, and Save As…
The Link Menu includes: Open in Sidebar (HTTP/HTTPS), Open in External Browser, Open Link (mailto: etc. schemes), Copy Link Address / Link Text / Copy as Markdown Link.
The following situations are not taken over by the plugin: input fields, selected text, message actions, code blocks (<pre>), JSON copy buttons, etc., which retain native DSH behavior. Paths in inline code can still be right-clicked. If a path cannot be found on the host side, a prompt “Not found in workspace…” will appear; the right-click will not be silently ignored. Menus and prompts follow the DSH interface language (Chinese / English) and update immediately upon switching.
Host-side vs. Browser-side¶
The browser-side half uses Cordis injection to listen for contextmenu events in the capture phase, resolving the DOM under the pointer based on fixed priorities (file tree rows data-files-path, workspace rows data-row-key="workspace:<id>", links, @ reference chips, etc.). Paths are confirmed to exist via the host before the menu pops up; absolute paths use /stat, falling back to the Session’s workspaceFiles Remote (remote / SSH workspaces) if not visible to the host.
The host-side half provides routes such as ping, raw, stat, read, and save-as under /dsh-right-click-menu for operations like copying content and saving as. These routes are protected by Host/Origin and browser authentication fences. The README notes: Built and verified for DSH 0.2.x (Web surface); path recognition relies on DOM markers not yet publicly available as APIs, so adjustments may be needed after major DSH upgrades—run npm test first.
Installation and Activation¶
The package name is the same as the upstream. If you have the AL1ghtm3ter or SJcun version installed, please uninstall it before installing this merged version.
Method 1: Web Interface (Recommended)¶
In the sidebar, go to Plugins → Add plugin and paste:
github:Ignareo/dsh-right-click-menu
Or use the Release package file:
https://github.com/Ignareo/dsh-right-click-menu/releases/latest/download/dsh-right-click-menu.tgz
Method 2: Command Line¶
First, completely exit DSH, then execute:
dsh plugin --profile desktop add github:Ignareo/dsh-right-click-menu
After installation, dsh-right-click-menu will be written to the profile’s dsh.profile.bundles.
Activation and Uninstallation¶
- Browser-side: Refresh the page (Ctrl/Cmd+R).
- Host-side (copying file content, Save As, etc.): A DSH restart is required once, as Node ESM cache may retain old modules.
To uninstall:
dsh plugin --profile desktop remove dsh-right-click-menu
You can also remove the corresponding dependencies and dsh.profile.bundles entries from the profile’s package.json and then restart.
Typical Usage¶
- Right-click a file or folder in the right “Files” tree to use preview, open with, copy path, etc.
- Right-click a workspace project name in the left sidebar to perform directory operations on the workspace root consistent with the file tree.
- Right-click
src/index.ts,D:\projects\app\main.py, or quoted paths in the chat body or inline code; a menu appears if the file exists, otherwise a prompt is shown. Bare filenames trigger the editor’s@filesearch; no menu appears if not found. - Right-click links (HTTP/HTTPS, etc.) to choose to open in the sidebar, open in an external browser, or copy as a Markdown link.
- “Save As…” prioritizes the browser save dialog; if unavailable, it falls back to selecting a directory and copying via the host.
Developers can perform verification in the repository root directory (Node >= 18 required):
npm test # 141 checks (107 client-side + 34 host-side)
npm run check:live # Requires DSH to be running; reads $DSH_WEB_URL by default
Live bundle verification for a specific address:
node scripts/live-bundle.mjs http://127.0.0.1:<port>
Use Cases and Notes¶
Suitable for developers who frequently browse workspaces in the DSH desktop/Web interface, open paths from conversations, and copy relative paths or Markdown links. The plugin client and host routes read and write paths under the current DSH process permissions; it is recommended to read the source code, LICENSE, and NOTICE.md before installation to confirm trust in the maintainer and the MIT terms.
Known limitations (from README): Markdown image links have no path tooltip (only recognized if the label itself is a path); workspace-relative Markdown links are resolved against the current session workspace; right-clicks inside code blocks retain native behavior. The DSH ecosystem follows the “Everything is a plugin” philosophy; SkillHub is a community directory site and has no official affiliation with DeepSeek / High-Flyer.
Conclusion¶
dsh-right-click-menu supplements right-clicks on file trees, chat paths, workspace projects, and hyperlinks with actionable file/link menus, without encroaching on the native experience of input fields and code blocks. Uninstall same-named upstream packages before installation, and refresh the page (and restart DSH if necessary) after installation.
- Directory Page: https://www.skillhub.cn/plugins/Ignareo/dsh-right-click-menu
- GitHub: https://github.com/Ignareo/dsh-right-click-menu