跳到正文

beijingwahw/dsh-conv-search

30最近提交 2026年8月15日

dsh-conv-search DSH 插件

该插件在对话视图添加一个浮动搜索栏,让你可以在当前聊天会话中搜索文本。它使用 CSS Custom Highlight API 高亮所有匹配项,支持区分大小写和全词匹配,并提供便捷的导航功能。搜索会与流式输出保持同步,且不影响 Harness 核心。

如何安装 dsh-conv-search DSH 插件

dsh plugin --profile web add https://github.com/beijingwahw/dsh-conv-search/archive/refs/tags/v0.1.0.tar.gz

复制不会执行命令。安装 dsh-conv-search DSH 插件前请核对仓库和版本。

dsh-conv-search DSH 插件数据来源

dsh-conv-search DSH 插件快照日期:2026年8月16日

discovered

dsh-conv-search DSH 插件能做什么

  • Ctrl/Cmd+F 打开浮动搜索栏,Esc 关闭。
  • 区分大小写和全词匹配切换按钮,实现精确搜索。
  • 实时 n/总数 匹配计数器,支持 Enter/Shift+Enter 导航并循环。
  • 通过 ArrowUp/ArrowDown 键浏览搜索历史。
  • 零结果时显示红色边框和抖动反馈(尊重 prefers-reduced-motion)。
  • 流式感知的 MutationObserver 去抖重新搜索,不窃取滚动位置。

dsh-conv-search DSH 插件适合哪些场景

  • 在长对话中搜索特定术语。
  • 在错误代码或函数名之间跳转。
  • 在模型还在流式输出时查找某个引用或事实。
  • 使用区分大小写搜索区分变量名如 'foo' 和 'Foo'。
  • 快速定位对话记录中的工具卡片或系统消息。

dsh-conv-search DSH 插件适合谁

  • 经常有长聊天会话的 DeepSeek Harness 用户。
  • 需要快速在对话日志中找到特定信息的开发者和研究人员。

dsh-conv-search DSH 插件的限制

  • 仅支持纯文本匹配:不支持正则、变音符号折叠或跨节点短语匹配。
  • 需要 CSS Custom Highlight API(Chrome/Edge 105+、Safari 17.2+、Firefox 132+);在不支持的浏览器上,搜索栏会计数但不会高亮。
  • 搜索栏位置固定(top: 64px, right: 24px),不可拖动。
  • 搜索范围仅限于当前对话列;侧边栏标题和设置页面被排除。

dsh-conv-search DSH 插件的仓库 README 摘录

以下文字摘自 dsh-conv-search DSH 插件的上游仓库 beijingwahw/dsh-conv-search 的 README,版权归原作者,仅作引用。

English | [中文](README.zh.md) In-conversation text search for the DeepSeek Harness web UI — the `Ctrl+F` you already know, scoped to the current chat session. A floating search bar highlights every match in the rendered transcript and walks between them, without touching a single line of harness core code. ## Problems it solves - **Long sessions are unsearchable**: the browser's native find searches the whole page (sidebar, composer, chrome) and cannot follow a conversation that keeps streaming. This plugin searches only the active conversation scrollport and stays in sync while the model is still writing. - **No way to jump between occurrences**: native find gives no "n / total" navigation. This plugin provides Enter / Shift+Enter and prev/next buttons with wrap-around, centering each match in view. - **Highlighting must not fight React**: the transcript DOM is React-owned and re-renders continuously during streaming. Instead of wrapping matches in `<mark>` nodes (which would mutate React-managed text and break reconciliation), the plugin paints ranges through the CSS Custom Highlight API — an overlay that survives every re-render and needs zero DOM cleanup. ## Features - **Ct

阅读完整 README仓库许可: MIT

dsh-conv-search DSH 插件常见问题

如何打开搜索栏?

在对话打开时按 Ctrl/Cmd+F,或者点击会话头部操作按钮中的搜索图标。搜索栏会出现在对话视图的右上角。

为什么高亮不显示?

该插件需要 CSS Custom Highlight API,该 API 在 Chrome/Edge 105+、Safari 17.2+ 和 Firefox 132+ 中可用。如果你的浏览器版本较旧或不支持,匹配项会被计数但不会高亮显示。请检查浏览器版本并更新。

可以搜索跨多行或跨样式标签的短语吗?

不可以,插件仅支持纯文本匹配。不支持正则表达式、变音符号折叠或跨节点短语匹配。如果短语被分割在多个样式标签(如加粗或代码)中,则不会作为单个字符串匹配。

在模型还在流式输出时搜索能正常工作吗?

是的,该插件具有流式感知能力。当新文本出现在对话记录中时,MutationObserver 会去抖重新运行搜索,并且不会窃取你的滚动位置。当前激活的匹配项会通过文本节点和偏移量锚定,因此不会跳转到其他匹配项。

如何在匹配项之间导航?

按 Enter 进入下一个匹配项,按 Shift+Enter 进入上一个匹配项。你也可以使用 F3 / Ctrl+G 进入下一个,Shift+F3 / Ctrl+Shift+G 进入上一个。搜索栏还提供了上一个/下一个按钮。导航到末尾或开头时会循环。