cjm-m/dsh-paste-code-block ↗★ 3

dsh-paste-code-block

Cherry Studio-style paste for DSH Web: pasted text/code becomes a bordered, collapsible, language-tagged card with localized names (中文/English) and a one-click remove button; restored as a fenced code block on send — and folded back into collapsed, expandable cards in the conversation. 适合频繁粘贴代码、希望保持对话界面整洁的 Web 端用户。

Package
dsh-paste-code-block
Compatibility
Unverified
Harness peer range
*
Cordis peer range
^4.0.1-rc.1
Version
0.2.6
License
MIT
Last updated
Oct 8, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:cjm-m/dsh-paste-code-block

Usage

  1. Copy any code or multi-line text from anywhere.
  2. Paste into the DSH input → it collapses into a chip such as 代码块 1 / Code #1.
  3. Click the chip to open the card: read, edit inline, copy, collapse. Click the chip's (or the card's) × to delete that block.
  4. Send — the full original text goes out as a proper fenced code block.
  5. In the conversation it stays folded: each block sits in the bubble as a collapsed card — click the header to expand and read, click again to collapse.

Detection threshold: contains a newline / ≥ 2 lines / length ≥ 96 / indented & brace-dense / fenced — any one turns the paste into a block.