yfzhou0904/dsh-plugin-gallery--plugins-composer-enter0

@yfzhou/dsh-composer-enter

Makes Enter insert newlines in the DSH composer and Cmd/Ctrl+Enter submit.

包名
@yfzhou/dsh-composer-enter
版本
0.1.0
许可证
MIT
最近更新
2026年8月16日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:yfzhou0904/dsh-plugin-gallery#0bca5d11a39014e69e5a571bf6d6ca97a491b2bb&path:plugins/composer-enter

@yfzhou/dsh-composer-enter

Changes the DSH composer keyboard behavior:

  • Enter inserts a newline.
  • Cmd+Enter submits on macOS.
  • Ctrl+Enter submits on Windows/Linux and is also useful on mobile keyboards that expose a control modifier.
  • Shift+Enter remains DSH's native behavior.

The plugin intercepts only plain Enter in the conversation textarea. Cmd/Ctrl+Enter is left to DSH's own keyboard handler so submission continues through the normal session-aware path. It is client-only and has no host-side behavior.

Install

dsh plugin --profile web add @yfzhou/dsh-composer-enter

The package supplies its own DSH bundle row; do not add a separate cordis.patch.yml entry.

Runtime requirements

  • Web client only
  • Tested with DSH 0.1.0-rc.6

The plugin relies on the conversation composer slot's current DOM structure and may need adjustment after a DSH UI update.

License

MIT