DSH HUB
首页插件商店插件包社区排行榜资源发布指南
插件源码
返回插件目录

2452779565 /

2452779565/dsh-selection-kit

已验证

Codex-style selection annotations and persistent reading highlights for DeepSeek Harness.

★ 0 Stars0 Forks0 IssuesN/A 社区评分0 已确认安装
查看 GitHub
README来源: main@15d03638

Selection kit 选区工具

Codex 风格的选区批注 + 持久阅读高亮插件,适用于 DeepSeek Harness。

Codex-style selection annotations plus persistent reading highlights for DSH. Selecting text opens two actions instead of the shipped 引用 / Quote button.

安装 / Install

  • 插件市场:在 dsh 的 插件 → 发现 里搜索 selection kit(dsh.so 收录后可用)。

  • 命令行:

    dsh plugin add github:2452779565/dsh-selection-kit
    
  • 本地目录:在 dsh 的 插件 → 添加插件 中选择本目录。

安装后在 插件 页确认 dsh-selection-kit 已启用(enable),然后在任意会话中选中文本, 选区末尾会出现两个操作按钮。要求 DeepSeek Harness 0.2.2-rc.x。

功能 / What it does

Action What it does
添加到对话 / Add to chat Opens a single-line comment capsule (添加可选评论... + round ✓). The passage becomes a numbered annotation; a speech-bubble number badge sits at the end of the selection, and a chip appears inside the composer card above the text area. The numbered block is inserted in front of your message when you send.
高亮 / Highlight Paints a persistent reading highlight (pure #FFFF00 by default). Click a highlighted passage to recolor or remove it; the gear opens the highlight settings.

The blue wash exists only while the comment capsule or an annotation editor is open; confirmed annotations keep no background color.

Annotation surfaces

  • Badge. #0088FF with a white number, 16 px, speech-bubble shape (small bottom-left radius), placed at the top-right end of the selection. Badges are children of the conversation scroller, positioned in content coordinates, so they scroll with the text, are clipped with it, and never float over the composer.
  • Composer chip. A real child of the composer card (inserted before the text area), so it takes layout space: the card grows when annotations exist and gains nothing when none do. Left: comment icon; middle: N 条注释; right: a round × that clears every annotation.
  • Hover list. Hovering the chip opens the list above it, left-aligned: one row per annotation with its number, 所选文本: and 用户评论: in secondary color, edit/delete icons at the top right, thin separators, and internal scrolling for long lists. Moving the pointer from the chip into the list keeps it open; leaving both closes it. There is no separate send button — the composer's own send action is used.
  • Editor. Clicking a badge opens a card above it: only your question is shown, as a borderless editable area, with the delete icon bottom-left and 取消 / 保存 bottom-right. Opening it restores the passage's temporary blue wash and closing removes it. Clicking outside or pressing Esc saves a changed comment (otherwise it just closes); 取消 discards, 保存 commits, and ⌘/Ctrl+Enter saves.

Reading highlights

  • Local only, never sent to the model. Each mark stores the message anchor key, block index, character offsets, a text quote, its color and its opacity.
  • Default color is pure #FFFF00; only the chosen opacity is applied, with no theme accent blended in. The highlight menu offers yellow/green/blue/pink and a custom color; the settings panel (default color, opacity, reset) persists in localStorage.
  • Annotations and highlights are independent stores: a passage can carry both, and only one popover is open at a time.

Requirements and limits

  • Takes over the quote cell of conversation.chat.text-interaction by registering it at priority -10, below the shipped quote cell's default 0 (a keyed cell renders its lowest-priority live entry), and works without the shipped quote plugin through its own selection admission. Disabling the plugin removes both registrations, so the shipped quote button returns.
  • Annotations are attached at send time by prepending their block in a capture-phase Enter / submit-button handler scoped to this conversation; while the composer is frozen Enter is cancelled, a / draft is left alone, and a failed send keeps the annotations.
  • Only en and zh copy is bundled; other locales fall back to English.
  • Selection sources follow the host: user bubbles, settled assistant Markdown, and reasoning bodies. Streaming assistant text and tool output are not selectable.

Files

  • client.js — the browser half: selection surface, stores, badge layer, in-card chip and hover list, editor, highlight engine.
  • index.js / cordis.patch.yml — Host row that loads the client module.
  • locale/en.json, locale/zh.json — Plugin Manager title and description.
  • icon.svg — plugin icon.
—/ 5

暂无评分

已验证 DSH bundle

Commit 15d03638d874

社区评论

还没有评论,来写第一条。

DSH HUB

社区维护的 DSH 插件索引。不是 GitHub 或 DeepSeek AI 的官方产品。

社区资源API关于