DSH Plugins Marketplace

DSH Plugins

Plugins

/

UI & Experience

/

dsh-inline-comments

d

dsh-inline-comments

Manifest valid

Annotate on selection, persist through refresh; send the notes with your message and the model answers each one.

UI (client)hasBundlePatch

dsh-inline-comments

DSH Web 的 GPT 式行内批注插件:在对话里选中助手回复的任意文本,就地加批注;发送时批注随正文一并交给模型,模型下一轮逐条回应。

批注演示

功能

  • 选中助手文本 → 浮出「+ 添加注释」按钮 → 点开编辑器写批注。
  • 编辑器内:回车 = 保存(默认),Shift+回车 = 换行。
  • 保存后:被批注文本高亮 + 右上角编号气泡;输入框上方出现「N 条注」胶囊。
  • 胶囊悬停查看详情、可删除单条;点「×」清空全部(并收回占位字符)。
  • 发送时:批注区([i] 原文:… / 批注:…)置于正文之前,中间以 --- 分割线隔开,模型下一轮逐条回答。
  • 发送后即清理(批注是「一次性」的,随发送消费)。
  • 支持中文 / 英文(跟随 DSH 语言设置),自动适配亮色 / 暗色主题。
  • 跨刷新持久化:批注镜像到宿主侧单一 JSON 文件(默认 ~/.dsh/dsh-inline-comments.json,可用 storagePath 配置覆盖),刷新后自动恢复;发送后自动清理,不留残留。浏览器 localStorage 仅作同页快速镜像。

使用

  1. 在助手回复里用鼠标选中一段文字。
  2. 点浮出的「+ 添加注释」。
  3. 输入批注,回车保存。
  4. (可选)再选别的文字继续加;胶囊里可管理 / 删除。
  5. 直接回车(或点发送)——正文会带上批注,模型逐条回应。

安装

dsh plugin --profile web add dsh-inline-comments

架构

  • lib/client.js(浏览器):全部功能——高亮 / 气泡 / 胶囊 / 编辑器、批注状态(localStorage + 宿主 JSON 文件)、发送前把摘要拼进草稿。
  • lib/index.js(宿主进程):注册 /_dsh/inline-comments/storage 路由,把批注持久化到单一 JSON 文件(load / save / clear,仅 loopback、原子写、发送后清理)。
  • cordis.patch.yml:把插件行插入 web profile 的 roster。

开发

  • 客户端热更:编辑 lib/client.js 后 dsh-client-hmr 自动重载(必要时刷新页面)。
  • 宿主改动需重启 dsh web。
  • 测试:npm install && npm test(自测脚本在 tests/,覆盖客户端 jsdom、刷新重挂载、宿主路由、宿主文件往返、客户端 fetch 集成)。

目录

lib/client.js       客户端半部(全部功能)
lib/index.js        宿主半部(存储路由 + JSON 文件持久化)
cordis.patch.yml    web profile 的 bundle patch
package.json        包元信息
tests/              自测脚本(npm test)
market-entry.yml    上架条目(awesome-dsh-plugin)
LICENSE             MIT

反馈

问题反馈与功能建议请提交至 GitHub Issues。

许可

MIT

Compatibility

DSH 0.1.7-rc.1: failedDSH 0.2.1-alpha.4: failedDSH 0.1.7-rc.2: failed

Versions

Latest versionPublishedSize
0.1.0——

Comments

Loading…

Similar plugins

dsh-select-quote

by latte03

Select text in the dsh web conversation to attach it as an annotation to your next message. The source text keeps a dashed highlight with an ordinal badge in place, and the composer summary lists, edi

UI & ExperienceDevelopment & InfrastructureManifest valid

★ 3

MIT

TypeScript

Oct 28, 2026

dsh plugin --profile web add dsh-select-quote

by sunnystarye-ui

Codex-style text annotation for conversations: select text, add a quote with your comment, inject it into the composer, and expand sent annotations as a pill.

UI & ExperienceManifest valid

★ 0

MIT

JavaScript

Aug 24, 2026

dsh plugin --profile web add dsh-plugin-text-quote

DSH ask_user_question enhancement: selecting an option reveals an optional note input right under it; the note is sent to the model alongside the selection.

UI & ExperienceTerminal & ClientsManifest valid

★ 0

dsh plugin --profile web add dsh-question-note

by zhao-guang-ai

该仓库暂未提供项目说明。

UI & ExperienceDevelopment & InfrastructureManifest valid

★ 3

↓ 491/wk

MIT

JavaScript

Oct 29, 2026

dsh plugin --profile web add dsh-quote-annotate-pro

by hiJoeLee

在每条回复下方给出可点的下一步建议,点一下就作为你的消息发出去

UI & ExperienceDevelopment & InfrastructureManifest valid

★ 3

↓ 262/wk

MIT

JavaScript

Oct 6, 2026

dsh plugin --profile web add dsh-suggest-actions

Adds lightweight selected-text references to DSH assistant replies: selections stay outside the editor as removable draft contexts, remain marked beside the source, and render as hoverable annotations

UI & ExperienceManifest valid

★ 0

dsh plugin --profile web add dsh-add-to-chat