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

dsh-paste-code-block

将粘贴的代码或文本转换为可折叠、带语言标签的卡片。 适合频繁粘贴代码、希望保持对话界面整洁的 Web 端用户。

套件
dsh-paste-code-block
相容性
待驗證
Harness 依賴範圍
*
Cordis 依賴範圍
^4.0.1-rc.1
版本
0.2.6
授權
MIT
最近更新
2026年10月8日

安裝

$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.