Preface¶
DSH assistant frequently references project files in replies: inline code paths, file chips, dsh-resource:// links, etc. Native right-click menus typically don’t offer “Open with local app” or “Locate in file manager” actions for these references, forcing you to manually copy the path and switch to your IDE or file explorer. The community plugin dsh-file-link-menu (maintainer XcodeFish) intercepts right-click events on file references in chat output and displays a native-style floating menu; code blocks, plain text, and external links still use the native menu and are not hijacked.
What Is This¶
dsh-file-link-menu is a DSH client-side plugin (pure ESM, zero dependencies, no build scripts), version 1.0.0, MIT licensed. The npm package name is @codefisher798/dsh-file-link-menu, source repository: github.com/XcodeFish/dsh-file-link-menu. Directory page: skillhub.cn/plugins/XcodeFish/dsh-file-link-menu (community directory, no official affiliation with DeepSeek / High-Flyer).
It solves the problem of right-clicking recognizable file paths in the DSH Desktop (web profile) or DSH NEXT chat interface to directly open, locate, or copy the path.
Core Features¶
After installation and restart, right-clicking on a file path in chat output will show a menu roughly containing:
| Menu Item | Behavior |
|---|---|
| Open with \<app> (marked “Default”) | Open file with the system default associated application (with app icon) |
| Open with \<app> | Applications registered locally for this file type association (with icons, listed individually) |
| Show file location | Locate the file in the system file manager (Finder / Explorer) |
| Copy absolute path | Copy <current session workspace>/<relative path> |
| Copy relative path | Copy the path relative to the current session workspace |
Opening and locating are executed by the Host via Session Remote; the Host performs secondary path validation, restricted to files within the current session workspace only.
Which Elements Are Recognized¶
The plugin identifies “file references” using four layers of criteria in order; if none match, the native right-click menu is preserved:
<a href="dsh-resource://file/session/<id>/<path>">resource address links[data-file-path]explicit markers- Markdown file link buttons
<button title="<path>">(including inline reference chips with icons) - Inline code
<code>outside code blocks: where the entire text is exactly a file path (optionally with:line/-linesuffix)
<pre><code> code blocks, plain text, and external links will not be hijacked.
Installation and Activation¶
The plugin is installed as a pnpm dependency of the profile; after installation, you must restart DSH Desktop or DSH NEXT (the client bundle generates a rev based on file mtime and versioned cache; without restart, it won’t reload).
DSH Desktop CLI (Recommended)¶
The following commands come from the project README; paths are for the default DSH Desktop layout on macOS. Linux / Windows users need to adjust DSH_HOME and bin.js paths according to their local DSH Desktop installation location.
DSH_HOME="$HOME/Library/Application Support/dsh-desktop/harness"
"$DSH_HOME/.desktop-bin/node" \
"/Applications/DSH Desktop.app/Contents/Resources/app.asar.unpacked/node_modules/@deepseek-ai/dsh/lib/bin.js" \
plugin --profile web add --save-exact github:XcodeFish/dsh-file-link-menu
You can also use the full GitHub URL or the npm package name for a simplified installation:
# Same node + bin.js prefix as above
plugin --profile web add @codefisher798/dsh-file-link-menu
Version locking example: github:XcodeFish/dsh-file-link-menu#v1.0.0 or #<commit>.
DSH NEXT¶
Add the plugin in settings or use plugin_manager:
plugin_manager install_bundle(target="github:XcodeFish/dsh-file-link-menu")
Also supports GitHub URL, release .tgz, npm package name, or local absolute path; #v1.0.0 or #<commit> can lock the version.
Uninstall (Desktop CLI)¶
"$DSH_HOME/.desktop-bin/node" \
"/Applications/DSH Desktop.app/Contents/Resources/app.asar.unpacked/node_modules/@deepseek-ai/dsh/lib/bin.js" \
plugin --profile web remove dsh-file-link-menu
After uninstallation, DSH Desktop must also be restarted.
Typical Usage¶
- Install the plugin using any method from the previous section.
- Restart DSH Desktop or DSH NEXT.
- With an existing session and workspace already open, find a file chip, inline path, or
dsh-resource://link in an assistant reply. - Right-click that element: choose the default or a specific app in the “Open” group; or choose “Show file location”, “Copy absolute path”, or “Copy relative path”.
If right-clicking doesn’t show a custom menu, first confirm that the client was restarted; if clicking on a path inside a code block, the native menu is preserved by design.
Use Cases and Notes¶
Who it’s for: Developers who frequently click file references in DSH chats and want to minimize window switching; using DSH Desktop (including 0.10.x web profile) or DSH NEXT; works on macOS / Windows / Linux (opening and locating are performed by the Host via system APIs).
Permissions and security: The plugin runs with the current DSH process and user permissions; before installation, it’s recommended to read the repository source code and MIT license, and make your own judgment about including it in your profile.
FAQ highlights:
- A specific app is missing from the menu: the file type association must be registered in the system.
- Only files within the workspace are valid: the Host performs secondary validation of the path range.
- No response after installation: restart the client.
Developers can locally run node --check client.js and node self-test.mjs for DOM stub self-testing, no browser required.
Conclusion¶
The DSH ecosystem emphasizes “everything is a plugin”; dsh-file-link-menu only supplements the right-click capability for file references in chat output and does not alter the behavior of code blocks and plain links. For installation commands and behavior details, refer to the GitHub README; for the community index, see the SkillHub directory page.