DSH Plugins Marketplace

DSH Plugins

Plugins

/

UI & Experience

/

dsh-file-context-menu

d

dsh-file-context-menu

Identified

Right-click menu for file links in chat: open with registered apps, save as, copy path or content, reveal in Finder or Explorer.

@dengsixue/dsh-file-menu

DeepSeek Harness (DSH) 聊天区文件超链接右键上下文菜单增强插件。

npm License: MIT DSH Plugin

在 DeepSeek Harness 对话区域中,右键点击本地文件超链接、文件引用标签(Chip)、代码块文件路径时,提供类似操作系统原生体验的快捷操作上下文菜单。

右键菜单截图


✨ 核心特性

  • 🚀 智能上次使用应用:顶部第一行记忆上次用来打开该类型文件的应用,一键极速重开。
  • 📂 系统级打开方式:
    • Windows:自动解析系统注册表中的关联应用列表与 OpenWithList,使用 PowerShell 高性能批量提取对应高清应用图标。已修复 Electron 环境下外部应用(如 VS Code、Trae CN 等)继承 ELECTRON_RUN_AS_NODE 导致的唤起失效问题。
    • macOS:通过 LaunchServices 提取与 Finder 完全一致的应用列表与图标。
  • 🛡️ 丝滑子菜单防抖:采用原生级悬停缓冲区与 280ms 延时保护,斜向滑动平滑稳定,杜绝鼠标稍微划偏子菜单就意外消失的问题。
  • 💾 另存为...:直接呼出系统原生保存对话框,将工作区文件保存至任意自定义目录。
  • 📋 快速复制:一键复制文件名/链接文本、绝对文件路径、文件内容(支持 5MB 以内文本文件)。
  • 🔍 在资源管理器/Finder 中显示:直接打开父目录并在资源管理器中精准高亮选中该文件。
  • ⚡ 原生快捷穿透:按住 Shift 键再右键,无缝直通操作系统或浏览器原生菜单,完全不破坏原生体验。

🖥️ 平台兼容性

平台打开方式支持图标提取状态
Windows注册表关联应用 (HKCU/HKLM)PowerShell 批量提取关联图标✅ 已真机适配与环境净化
macOSLaunchServices 动态解析系统原生图标映射✅ 支持

提示:Windows 上的部分受限 UWP 沙盒应用(如系统自带简易照片)不会出现在传统打开方式列表中。


📦 安装与使用

方式 1:通过 npm 安装(推荐)

在终端中执行:

dsh plugin --profile desktop add @dengsixue/dsh-file-menu

方式 2:通过 Release / 本地打包安装

  1. 从 GitHub Releases 下载最新安装包,或本地打包:
    pnpm pack
    
  2. 在 DSH Desktop 的「插件」页面选择该 .tgz 安装; 或者命令行安装:
    dsh plugin --profile desktop add .\dengsixue-dsh-file-menu-1.0.0.tgz
    

方式 3:本地开发目录链接安装(便于调试)

直接将本地源码目录作为插件加入:

dsh plugin --profile desktop add "C:\Users\Administrator\Documents\dsh-file-context-menu"

⚠️ 重要提示:安装、更新或修改前端 Client 注入代码后,必须完全退出并重新打开 DSH Desktop(重启主进程),仅在界面按 Ctrl + R 刷新无法重新加载底层客户端扩展。


📄 许可证

本项目基于 MIT 许可证 开源。

Comments

Loading…

Similar plugins

dsh-file-actions

by 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.

UI & ExperienceDevelopment & InfrastructureManifest valid

★ 5

↓ 944/wk

MIT

JavaScript

Nov 3, 2026

dsh plugin --profile web add @jidekaixin2dian/dsh-file-actions

by 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

UI & ExperienceDevelopment & InfrastructureManifest valid

★ 1

MIT

JavaScript

Oct 1, 2026

dsh plugin --profile web add @codefisher798/dsh-file-link-menu

by dreammaker2016

该仓库暂未提供项目说明。

Tools & CapabilitiesUI & ExperienceTerminal & ClientsManifest valid

★ 1

MIT

JavaScript

Sep 21, 2026

dsh plugin --profile web add @z1995418/dsh-file-menu

Ctrl+click file paths and links in chat: paths open their folder in the OS file manager (with the file selected), links open in a new browser tab.

UI & ExperienceManifest valid

★ 0

↓ 122/wk

dsh plugin --profile web add dsh-pathlink

by 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.

Manifest valid

★ 0

MIT

JavaScript

Oct 20, 2026

dsh plugin --profile web add dsh-link-actions

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.

UI & ExperienceManifest valid

★ 0

dsh plugin --profile web add dsh-file-context-menu