Swaps the DSH composer keys: Cmd+Enter (Ctrl+Enter on Windows and Linux) sends the message and plain Enter inserts a newline.
Install
# from a prebuilt release tarball
dsh plugin --profile web add -w "https://github.com/ay27/dsh-cmd-enter-send/releases/latest/download/dsh-cmd-enter-send.tgz"
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:ay27/dsh-cmd-enter-send
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
Cmd+Enter sends, Enter inserts a newline in the DeepSeek Harness composer.
DSH ships the opposite: plain Enter sends the message and Shift+Enter breaks the line. If you write multi-line prompts, that means reaching for Shift every time you want a newline, and losing the message every time you forget. This plugin swaps the pair so Enter is always safe to press and sending is a deliberate gesture.
Keys
| Key | Result |
|---|---|
Enter |
Insert a newline |
Cmd+Enter (macOS) / Ctrl+Enter (Windows, Linux) |
Send the message |
Shift+Enter |
Insert a newline (unchanged) |
Esc Esc |
Stop the running response (unchanged) |
The swap applies to the conversation composer only. Every other shortcut, the command and reference menus, and IME composition behave exactly as before.
Why it is not a setting
DSH's composer hard-codes this mapping in
@deepseek-ai/dsh-client-ui-conversation (src/client/input/editor/keymap.ts:
plain Enter calls handlers.submit(), Shift+Enter falls through to Lexical's
line break). The shortcut catalogue exposes those as fixed bindings, which DSH
deliberately refuses to rebind, so there is no setting that could express the
swap.
Instead this plugin installs a capture-phase keydown listener on window,
which runs before the composer's own handler. A bare Enter inside the composer
is swallowed (preventDefault + stopPropagation, so the composer keymap never
sees it) and re-dispatched as a synthetic Shift+Enter to the same element —
the branch the composer passes through to Lexical's built-in line break.
Ctrl/Cmd+Enter is left completely untouched, so it keeps taking DSH's normal
send path.
Because it works on the DOM event rather than on DSH internals, it does not depend on module injection order and it degrades safely: if the composer's markup ever changes, the listener simply stops matching and DSH behaves as it did before.
Install
From the plugin market, or by pointing DSH at this repository:
dsh plugin --profile web add github:ay27/dsh-cmd-enter-send
Or install the prebuilt tarball attached to the latest release, which skips the build-from-source step:
dsh plugin --profile web add https://github.com/ay27/dsh-cmd-enter-send/releases/latest/download/dsh-cmd-enter-send.tgz
Restart DSH (or reload the window) after installing.
Uninstall
dsh plugin remove dsh-cmd-enter-send
Removing the plugin restores the default Enter-to-send immediately — there is no saved state to clean up.
Compatibility
Built against DSH 0.2.2-rc.5 and requires >=0.2.2-rc.1 <0.3.0-0. The plugin
relies on two attributes DSH puts on the composer (data-composer-input and
data-composer-card); if a future release renames them, the plugin stops
intervening rather than breaking input.
License
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-task-board★ 10645
Task board for the dsh web GUI: a sidebar multi-column kanban whose cards run in real DSH agent sessions and can also be scheduled with cron expressions, executed host-side even with the browser closed.
zhu1090093659/dsh-web#packages/dsh-web-all★ 10645
Plugin and skin collection for the DSH Web UI: task board, Git graph, right-side panel, remote mobile UI, pet, live token stats, and a skin center.
ccch1mneyyy/dsh-TUI★ 8283
Claude Code-style full-screen terminal UI: pixel-whale header, live status line, and streaming thought expansion.
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 7472
A fixed-corner whale widget for the DSH web GUI — balance, today's usage and per-turn cost with peak/off-peak pricing, editable balance-alert and daily-budget bubbles, a module-based custom bubble queue with A/B weighted choices and random lines or images, 30+ vendor templates (OpenAI, OpenRouter, Kimi, SiliconFlow, Ark, Zhipu, MiniMax and more) with per-model balance and subscription quota, plus task-end sound, imported audio, custom roles and a resource manager. Local-only, no telemetry.
omdsh-dev/DSH-better-sidebar★ 5336
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
omdsh-dev/dsh-genui★ 1060
Interactive UI components rendered inline in replies: layout, charts, forms, quizzes, mermaid, 3D scenes, and an action event loop back to the model.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.