dsh-enter-customizer
by Boliban
接管聊天输入框的回车等快捷键,每个快捷键的行为都能单独配置。
Take over the system input shortcuts for the chat input box and configure behavior independently for each shortcut.
安装
dsh plugin --profile web add github:Boliban/dsh-enter-customizerGitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试
安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗
安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。
README
DSH(DeepSeek Harness)Web 插件:接管聊天输入框的系统输入快捷键,为每个快捷键独立配置行为。配置通过 DSH 用户设置持久化保存。
功能
- 接管系统输入快捷键:
Enter、Ctrl+Enter、Shift+Enter、Alt+Enter和右下角发送按钮 - 每个快捷键可独立选择行为:
- 发送消息:空闲立即发送;忙碌时自动排队,回合结束后发送
- 繁忙时插入消息:空闲立即发送;忙碌时进入系统队列(与系统内置的"在繁忙时插入消息"机制完全一致,可在输入框上方的队列栏查看、编辑、引导入回合)
- 换行:插入换行,不发送
- 无作用:按键无任何效果(也不触发系统默认行为)
- 设置持久化:配置写入用户设置文档(
~/.dsh/settings.yaml的dsh-enter-customizer段),重启不丢失;系统设置页「输入快捷键」直接编辑 - 发送失败提示:失败时在输入栏正上方浮动显示错误提示(3.2 秒后自动消失)
- 安全护栏:中文输入法组合输入(IME)、斜杠命令菜单/弹层打开、机器忙碌(提交中)、含 @引用/图片的草稿、空草稿、停止按钮等场景自动放行给系统默认处理
截图
设置界面
设置 → 输入快捷键,每个快捷键独立配置行为:

默认配置
| 快捷键 | 默认行为 |
|---|---|
| Enter | 发送消息 |
| Ctrl + Enter | 繁忙时插入消息 |
| Shift + Enter | 换行 |
| Alt + Enter | 发送消息 |
| 发送按钮 | 发送消息 |
安装
dsh plugin --profile web add github:Boliban/dsh-enter-customizer
卸载与更新
dsh plugin --profile web update dsh-enter-customizer # 更新到最新
dsh plugin --profile web remove dsh-enter-customizer # 卸载
文件结构
├── package.json # dsh.client(Web 插件)+ dsh.bundle(profile patch)声明;deepseek-ai/* 为 peerDependencies
├── cordis.patch.yml # bundle patch:插入插件行
├── pnpm-lock.yaml # 插件依赖快照(link 安装时 Node 从项目目录解析)
├── lib/
│ ├── index.js # Host 半部:注册持久化 settings 命名空间
│ └── client.js # Client 半部:快捷键拦截 + 设置页 + 失败提示
└── assets/
└── settings.png # 设置界面截图
实现要点
- 快捷键拦截:在
conversation.input.dock挂载组件,使用 document 级 capture 监听keydown/click,仅当事件目标位于[data-composer-card]内时按配置处理;preventDefault+stopPropagation覆盖系统默认行为 - 发送/繁忙时插入均通过
session.prompt(content, 'queue')提交——与系统内置队列完全同一通道,消息显示在系统队列栏 - 换行通过 DOM 写入 +
inputActions.setDraft()立即同步,文本区即时刷新 - 持久化:Host 半部
settings.register注册dsh-enter-customizer命名空间(schemastery schema),Client 半部经settingsScope.bind读写(scope.set逐字段写入,scope.subscribe同步外部变更) - Client bundle 为纯 JS(仅依赖
react),无需打包步骤,直接以__ModuleLoader__工厂格式发布
原始 README: https://github.com/Boliban/dsh-enter-customizer/blob/main/README.md ↗
同类插件
查看全部 →
archify
Agent 技能:生成美观、可校验的架构图、工作流图、时序图、数据流图与生命周期图——自包含 HTML、带动画与清晰导出

dsh-turn-rewind
对话回退:基于持久 Change Ledger 回滚会话与工作区状态。

dsh-plugin-cc
把 DeepSeek Harness 接入 Claude Code:评审、批评、委派与会话导入

dsh-interconnect
跨实例互联:经 interconnect 服务在多个 DSH 实例间转发消息与事件。

dsh-chat-import
把 13 家 coding agent(Claude Code、Codex、ChatGPT、Cursor、Gemini、opencode 等)的完整对话历史导入为可续聊的 DeepSeek Harness 会话,并支持反向导出回 Claude Code。

dsh-crew
DSH 插件:从 Claude Code / Codex 向 DSH agent 派活——原生 subagent 进度、宿主内 worker 会话(分级预设),以及为纯文本宿主补上视觉与图像生成的多模态桥