ruehuangs/dsh-global-selection ↗★ 0
dsh-global-selection
DeepSeek Harness 全局划词:在任意应用中选中文字,翻译 / 解释 / 总结分别在固定的 DSH 会话中由 Agent 回答,小窗实时显示并可继续追问,一键在 DSH 中打开。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ruehuangs/dsh-global-selection配置
在 DSH 设置页的 global-selection 下修改;每次修改后插件会自动重启。
| 配置项 | 默认值 | 说明 |
|---|---|---|
enabled | true | 总开关 |
triggerMode | selected | selected 划词即弹出;ctrlkey 划词后长按 Ctrl |
enabledActions | 翻译、解释、总结、复制 | 工具栏上的内置动作及顺序 |
customActions | 空 | 自定义动作:名称 + 提示词,可用 {{text}}、{{language}} |
targetLanguage | 简体中文 | 翻译的目标语言,也是解释、总结的回复语言 |
maxSelectionChars | 4000 | 发进会话的选中文字最大字数 |
followToolbar | true | 结果窗口出现在工具栏旁;关闭则居中 |
autoClose | false | 结果窗口失焦自动关闭(固定的除外) |
filterMode / filterList | default / 空 | 应用过滤:默认、黑名单、白名单;程序名如 chrome.exe |
electronPath / electronMirror | 空 | 侧车 Electron 的路径 / 下载镜像 |
debug | false | 输出侧车调试日志 |