prettyfox/dsh-selection-quote-auto ↗★ 0

dsh-selection-quote-auto

选中即复制 + 「注释」浮框:DeepSeek Harness 划词引用与批注增强(基于 dsh-selection-quote 0.2.0 的本地增强版) 适合频繁需要对AI回复进行划词引用、快速复制和添加批注的用户。

Package
dsh-selection-quote-auto
Compatibility
Unverified
Version
0.2.1
License
MIT
Last updated
Oct 21, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:prettyfox/dsh-selection-quote-auto

使用

  1. 在助手回复里选中 ≥2 个字 → 原文自动复制,选区上方出现「注释」;
  2. 点「注释」→ 评论输入框出现(自动聚焦),可写批注,留空也行;
  3. Enter 或 ✓ → 底部输入框出现 💬 N 条注释 ×,Enter 发送;
  4. 右键菜单(拷贝 / 添加到对话 ⌘L)、序号角标、已发送消息的 N 条注释 胶囊都保持原样。

配置

插件本身读取宿主配置 enabled / addToChatMode / commentLabel;行为常量在 lib/client.js 顶部(改动后刷新页面即生效):

const AUTO_COPY_ON_SELECT = true;       // 选中即复制原文
const AUTO_TRIGGER_ON_SELECT = true;    // 选中即显示「注释」胶囊
const AUTO_TRIGGER_SCOPE = "assistant"; // "assistant" 仅助手消息;"any" 所有会话消息
const COPIED_HINT_MS = 1600;            // 「已复制」提示时长