Preface¶
The plugin system for DeepSeek Harness (dsh) allows users to extend client behavior. By default, the send and line-break key bindings for the chat input box are controlled by the browser or framework, which may not match the habits of some users. The dsh-enter-send plugin solves this problem by adding a configuration option that allows switching between “Enter to send” and “Ctrl+Enter to send”.
Plugin Introduction¶
This is a client plugin maintained by Nalleyer. Its core functionality is to remap the send / line-break bindings for the chat input box and to add a “Send Shortcut” option on the Settings → General page.
Core Features¶
- New setting: Adds a “Send Shortcut” option on the Settings → General page.
- Dual-mode support: Supports both “Enter to send” (default, preserving native
dshbehavior) and “Ctrl+Enter to send”. - Line-break handling:
Shift+Enterinserts a line break in both modes (browser default behavior, not intercepted). - IME compatibility: Pressing
Enterduring Chinese input method (IME) composition input is always allowed and will not send messages accidentally.
Installation and Enablement¶
Before installing, ensure your dsh version is 0.1.2-rc.1 (web platform) or higher.
- Run the installation command:
dsh plugin --profile web add github:Nalleyer/dsh-enter-send
- Restart
dsh webfor the configuration to take effect.
Note: When installing from git, the installation process runs the prepare script automatically to build. If using pnpm ≥ 10, the first add may fail. You need to configure the profile’s pnpm-workspace.yaml as follows:
allowBuilds:
dsh-enter-send: true
Then rerun add.
Typical Usage¶
- Open Settings → General.
- Select “Enter to send” or “Ctrl+Enter to send” from the “Send Shortcut” option.
- In the chat input box:
- When “Enter to send” is selected, normal
Entersends the message andCtrl+Enterinserts a line break. - When “Ctrl+Enter to send” is selected,
Enterinserts a line break andCtrl+Entersends the message.
- When “Enter to send” is selected, normal
Shift+Enteris always used to insert a line break.- During Chinese IME composition input (such as candidate selection), pressing
Enterdoes not send the message; it only confirms the candidate.
Notes¶
- Permissions and Security: This package declares a
dsh.bundlemanifest, and the auto-load line is automatically written into the profile’s patch layer afteradd. Before installing, verify that the source code is trustworthy, because the build process is executed with the current process permissions. - Uninstall residue: After uninstalling, the residual
enter-sendsection in$DSH_HOME/settings.yamlis harmless and can be removed manually. - Compatibility: With the default value
enter, normalEnterbehavior is fully consistent with the official behavior, making upgrades seamless.
Related Links¶
- GitHub repository: https://github.com/Nalleyer/dsh-enter-send
- Plugin directory: https://www.skillhub.cn/plugins/Nalleyer/dsh-enter-send