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¶
- Selection Interaction: Select any text within the Chat view.
- Insert Quote: An “Add to Dialog” button appears next to the selection; clicking it inserts a quote chip.
- Atomic Operation: The quote chip is an atomic node that supports deletion and undo operations as a single unit.
- Format Conversion: When copying the draft, it expands into the
> Original Textformat, remaining readable when pasted elsewhere. - 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.
- Open the DSH sidebar Plugins → Add Plugin.
- Paste the command below into the input box, select
NPMas the installation source, and click install:
dsh plugin --profile web add github:cfyofjackie/dsh-selection-quote
- Refresh the page after installation is complete (restart the desktop App if there is no response).
Typical Usage¶
- Select a piece of text in the conversation interface that needs to be quoted.
- An “Add to Dialog” button will appear near the selected area; click it.
- A quote chip will appear at the end of the input box, and the cursor will return to the input box.
- 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.