dsh-enter-swap
开发工具 活跃维护

dsh-enter-swap

lzxcs/dsh-enter-swap

轻量级浏览器插件,可一键互换网页输入框的回车快捷键默认逻辑,默认将Ctrl/Meta+Enter设为换行、Shift+Enter设为发送,适配绝大多数带输入交互的网页,无需额外配置即装即用。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
3 KB
仓库大小
29 天前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:lzxcs/dsh-enter-swap
git clone https://github.com/lzxcs/dsh-enter-swap.git
git clone git@github.com:lzxcs/dsh-enter-swap.git
README.md main

dsh-enter-swap

Swap the web UI composer shortcuts: Ctrl/Meta+Enter inserts a newline, Shift+Enter sends.

安装(Install)

需要 DSH(DeepSeek Harness)与 web profile(dsh web):

# 1. 安装插件(pnpm git 依赖)
dsh plugin --profile web add github:lzxcs/dsh-enter-swap
# 2. 在 ~/.dsh/profiles/web/cordis.patch.yml 末尾追加注入块:
- insert:
    - id: dsh-enter-swap
      name: 'dsh-enter-swap'
# 3. 重启 DSH Web(托盘菜单 → DSH Web 重启),浏览器 Ctrl+F5 刷新页面

卸载:dsh plugin --profile web remove dsh-enter-swap,并删掉 cordis.patch.yml 中的注入块。