ltsone9/dsh-filemenu1

dsh-filemenu

DSH 右键上下文菜单插件:为文件、侧边栏项目和会话提供右键菜单,支持打开文件、在资源管理器中定位、复制路径等。

AI 分析

核心用途是增强 DSH Web UI 的文件操作便利性。适合频繁需要定位生成文件、在本地编辑器中打开代码或复制文件路径的本地开发与协作任务。

包名
dsh-filemenu
版本
1.1.6
许可证
MIT
最近更新
2026年8月21日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ltsone9/dsh-filemenu

🖱️ Usage

Right-click the target; the menu appears exactly at the cursor.

SurfaceMenu items
Produced-file chip / inline reference / tool-card linkOpen · Open containing folder · Open in editor ▸ (detected editors) · Open with another program… · Copy path · Copy relative path
Sidebar workspace (project) rowOpen containing folder · Open · Copy path
Sidebar session rowOpen containing folder · Open · Copy path

Platform behavior:

  • Windows — "Open containing folder" opens Explorer with the file selected (explorer /select, ); "Open" uses Invoke-Item; "Open with another program…" opens the system dialog (rundll32 shell32.dll,OpenAs_RunDLL).
  • macOS — reveal uses open -R; open uses open.
  • Linux — reveal/open use xdg-open (desktop only).
  • "Open with another program…" is Windows-only and hidden elsewhere.
  • When the Host cannot open paths (canOpenPath = false, e.g. remote web access or headless Linux), all OS-dependent items are disabled; copy items keep working.

🔧 Configuration

  • Add a custom editor: edit the EDITOR_SPECS table in plugin/host.js and mirror the entry in lib/index.js — each spec has commands (PATH-resolvable names), exeNames (GUI executables next to a bin/ script), and installs (absolute install paths).
  • Menu text: edit the zh / en dictionaries in plugin/client.js.
  • Theme: light mode uses harness alias tokens; dark mode colors live in MENU_CSS (data-fm-theme="dark" block) in plugin/client.js.