Skip to main content
Q

dsh-message-quote

qipengxiang/dsh-message-quote

Quote any message of the current conversation into the composer: pick one from the @ menu, click the quote button on a user or assistant message, or select text and use Quote in the right-click menu. Quotes show as numbered chips in the composer and as summary bubbles above it; after sending, each quote becomes a fenced block so the model can tell quoted text from new text.

Install

dsh plugin --profile web add github:qipengxiang/dsh-message-quote

README

dsh-message-quote / 消息引用

把本对话里的任意一条消息引用进输入框,再针对它补充、纠正或提问。

dsh plugin add github:qipengxiang/dsh-message-quote

引用入口 / How to quote

  • @ 菜单:在输入框输入 @,选择「引用消息」,列出本对话里用户与 AI 的历史消息(按时间倒序,可输入关键字过滤)。
  • 用户消息:每条用户消息的时间与复制按钮之间常显一个引用按钮。
  • AI 回复:回复下方的操作行里(复制、点赞旁)有引用按钮。
  • 选中片段:在对话里选中文字后右键,菜单里「复制」下面多一项「引用」,只引用选中的那段。

引用之后 / What happens

  • 输入框内出现一条浅蓝芯片,带序号和摘要,尾部 ✕ 可删除;多条引用按顺序编号。
  • 输入框上方浮出淡蓝气泡,显示该引用的摘要与角色,右上角 × 可删除;气泡出现时对话区会让出等高空间,不遮住消息。
  • 发送后,引用在消息里展开成独立块,边界清晰,模型能分清哪些是引用的内容、哪些是新写的内容:
【引用 · 用户】
> 被引用的原文
【/引用】

说明 / Notes

  • 引用只在本对话内,不跨会话。
  • 依赖 DSH 的会话槽位与对话节点结构;DSH 升级后可能需要重新核对。
  • 纯客户端插件,不联网、不写文件。

开发 / Development

npm test   # node test/self-check.mjs

Related plugins