cjm-m/dsh-paste-code-block

dsh-paste-code-block turns long pastes in the DeepSeek Harness Web composer into bordered, collapsible, language-tagged cards instead of a wall of text: it auto-detects fenced, multi-line or indented pastes, names them in the current interface language, restores the original text as a fenced code block on send, and keeps sent blocks folded in the transcript.

dsh-paste-code-block brings Cherry Studio-style text/code block pasting to DeepSeek Harness Web. Pasting long code or text into the composer collapses it into a bordered, collapsible, language-tagged chip (built on DSH's own hidden-reference mechanism, the same one file uploads use) plus an editable detail card, instead of a wall of text. Detection triggers on a fence, a newline, heavy indentation or length >= 96 characters, and language tags are auto-detected for Python, JS, JSON, YAML, SQL, bash, HTML/XML, C++, Go and Ruby (plain text is tagged text). Chip names follow the DSH interface language and re-title live on a language switch, chips carry their own delete button with number recycling, and on send the full original text goes out as a fenced code block that stays folded as a click-to-expand card in the transcript. Draft-rebuild recovery keeps a small localStorage mirror so blocks re-attach when the composer is rebuilt (workspace switch or page reload).

Web UI Enhancements ★ 3
View on GitHub ↗

Install

dsh plugin --profile web add dsh-paste-code-block

Copied verbatim from the README's npm install block; the README also documents github:cjm-m/dsh-paste-code-block and file:/path/to/dsh-paste-code-block forms.

Compatibility

Requires DSH 0.1.x (developer preview - APIs may change). Web profile; a pure client plugin that works on desktop and mobile web and follows light/dark themes. Restart dsh web after installing. English README with a Simplified Chinese translation.

Details

Alternatives

0lidaxiang/dsh-plugin-greet · 147228/dsh-black-whale · 15828148/dsh-portable-launcher

More plugins in Web UI Enhancements

Browse more in Web UI Enhancements

Guides for Web UI Enhancements plugins