dsh-alt-enter-newline: Add Alt+Enter newline functionality for DSH web input box

Introduction

When writing long prompts or multi-line instructions in the DeepSeek Harness (dsh) web interface, the shortcut for inserting a newline often determines how smooth the experience feels. By default, dsh is configured to send messages with Enter, insert newlines with Shift+Enter, and interject during an ongoing conversation with Ctrl+Enter; Alt+Enter is not bound to any function. If you are accustomed to the “Alt+Enter for newline” muscle memory from other AI clients, having to switch to Shift+Enter every time can break your train of thought. The following introduces the community plugin dsh-alt-enter-newline, which maps Alt+Enter to insert a newline without modifying the core of dsh.

What is this

dsh-alt-enter-newline is released by the maintainer liggest and categorized as a Client-side plugin designed for the dsh Web input box. In short: it adds Alt+Enter for newline functionality to the web composer, aligning with the positioning found in the README: “Saving the Alt+Enter newline users in dsh.”

The implementation simply converts Alt+Enter to Shift+Enter on the client side and passes it to the input box’s existing logic for processing. It does not modify the dsh core itself and leaves no trace after uninstallation.

Core Features

  1. Alt+Enter for newline: After installation and refreshing the page, pressing Alt+Enter in the input box will insert a newline, behaving exactly like Shift+Enter.
  2. Visible Shortcut: A new “Alt+Enter for newline” entry will appear in the shortcut reference (accessible via Ctrl+/ or via “View” in the shortcuts section of the settings).
  3. Edge Case Behavior: The README specifies that the Enter key behavior during Chinese IME candidate selection and European keyboard layouts using AltGr are unaffected. Other shortcuts like Ctrl+Alt+Enter (panel fullscreen) are also unaffected.

The current version of the plugin in the documentation is 1.0.0 (package.json), and the license is MIT.

Installation and Activation

First, install the plugin, then refresh the page to enable it. Please replace web with the actual profile name you are using.

You can search for and install it via the plugin marketplace or plugin manager within the dsh web interface, or use the command line:

dsh plugin --profile web add dsh-alt-enter-newline

You can also ask the Agent within dsh to install it for you. Once installed, refresh the page; then, check the shortcut reference to confirm if “Alt+Enter for newline” has appeared.

To uninstall:

dsh plugin --profile web remove dsh-alt-enter-newline

You can also uninstall it via the plugin manager.

Typical Usage

  1. Open the dsh web interface and navigate to the conversation input box.
  2. When entering multi-line content, use Alt+Enter to insert a newline at the cursor (no need to switch to Shift+Enter).
  3. Continue to use Enter to send messages; if you need to interject during an ongoing conversation, continue to use Ctrl+Enter (this is default behavior unrelated to the plugin).

Scenarios and Notes

Who it is for: Developers who frequently write multi-line prompts, script snippets, or structured instructions in the dsh Web interface and are accustomed to using Alt+Enter for newlines.

Compatibility: The README states it has been tested on dsh 0.1.7-rc.2. The plugin relies on some internal implementations of dsh; if it stops working after a major dsh version or frontend update, please report it in the Issues section.

Please note before installing: The DSH ecosystem emphasizes “Everything is a plugin”; community directories (such as SkillHub) are independent sites and have no official affiliation with DeepSeek / High-Flyer. Client-side plugins are loaded on the browser side along with the dsh process. Before installing, you should review the GitHub repository source code and the MIT license yourself to ensure it meets your security and compliance requirements.

Conclusion

If you simply need a small change to align Alt+Enter with the habits of other AI clients, dsh-alt-enter-newline achieves this via a patch-style client injection, with clear paths for both installation and uninstallation.

Directory Page: https://www.skillhub.cn/plugins/liggest/dsh-alt-enter-newline;
Source Code & Documentation: https://github.com/liggest/dsh-alt-enter-newline.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye