dsh-selection-quote: Select text in a conversation and insert it as an atomic quote

DSH (DeepSeek Harness) currently does not have the feature found in ChatGPT that allows directly quoting selected text into the input box; manual copying and pasting is required. The dsh-selection-quote plugin solves this issue by allowing users to select text within a conversation and insert it as an uneditable quote object into the input box, facilitating follow-up questions regarding specific content.

Plugin Positioning

This is a DSH client plugin maintained by cfyofjackie under the MIT license. Its core function is to select text within a conversation and add it to the chat box as an atomic quote chip, rather than simply pasting text.

Core Features

  1. Selection Interaction: Select any text within the Chat view.
  2. Insert Quote: An “Add to Dialog” button appears next to the selection; clicking it inserts a quote chip.
  3. Atomic Operation: The quote chip is an atomic node that supports deletion and undo operations as a single unit.
  4. Format Conversion: When copying the draft, it expands into the > Original Text format, remaining readable when pasted elsewhere.
  5. View Restriction: Only effective in the Chat view; unavailable in Trajectory or Waterfall views.

Installation and Activation

The web version and the desktop App use the same installation process.

  1. Open the DSH sidebar Plugins → Add Plugin.
  2. Paste the command below into the input box, select NPM as the installation source, and click install:
dsh plugin --profile web add github:cfyofjackie/dsh-selection-quote
  1. Refresh the page after installation is complete (restart the desktop App if there is no response).

Typical Usage

  1. Select a piece of text in the conversation interface that needs to be quoted.
  2. An “Add to Dialog” button will appear near the selected area; click it.
  3. A quote chip will appear at the end of the input box, and the cursor will return to the input box.
  4. Continue to type a new question and send it.

Notes and Limitations

  • Insertion Position: Quotes are always inserted at the end of the document, not at the cursor position.
  • Fallback Mechanism: If insertion is rejected (e.g., version conflict), it falls back to a plain text quote.
  • Length Limit: A single quote can be up to 20,000 characters long.
  • Uneditable: The quote chip is an atomic node and cannot be edited individually; it can only be deleted and recreated.
  • State Restriction: The button will be greyed out when the input machine is in a submitting or claimed state.
  • No Attribution: Quotes do not carry source information (which message they came from).
  • Language Following: Interface text follows the DSH language settings (built-in zh / en).

Summary

By using atomic quotes, this plugin solves the problem of needing to manually copy and paste when asking follow-up questions about specific conversation content in DSH. Plugin Directory: https://www.skillhub.cn/plugins/cfyofjackie/dsh-selection-quote, GitHub: https://github.com/cfyofjackie/dsh-selection-quote.

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

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

Xiaoye