dsh-filemenu
DSH 右键上下文菜单插件:为文件、侧边栏项目和会话提供右键菜单,支持打开文件、在资源管理器中定位、复制路径等。
AI 分析
核心用途是增强 DSH Web UI 的文件操作便利性。适合频繁需要定位生成文件、在本地编辑器中打开代码或复制文件路径的本地开发与协作任务。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ltsone9/dsh-filemenu说明文档
阅读完整 README ↗🖱️ Usage
Right-click the target; the menu appears exactly at the cursor.
| Surface | Menu items |
|---|---|
| Produced-file chip / inline reference / tool-card link | Open · Open containing folder · Open in editor ▸ (detected editors) · Open with another program… · Copy path · Copy relative path |
| Sidebar workspace (project) row | Open containing folder · Open · Copy path |
| Sidebar session row | Open containing folder · Open · Copy path |
Platform behavior:
- Windows — "Open containing folder" opens Explorer with the file selected (
explorer /select,); "Open" usesInvoke-Item; "Open with another program…" opens the system dialog (rundll32 shell32.dll,OpenAs_RunDLL). - macOS — reveal uses
open -R; open usesopen. - 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_SPECStable inplugin/host.jsand mirror the entry inlib/index.js— each spec hascommands(PATH-resolvable names),exeNames(GUI executables next to abin/script), andinstalls(absolute install paths). - Menu text: edit the
zh/endictionaries inplugin/client.js. - Theme: light mode uses harness alias tokens; dark mode colors live in
MENU_CSS(data-fm-theme="dark"block) inplugin/client.js.