- Startseite
- Plugins
- UI-Erweiterungen
- dsh-global-find
dsh-global-find
houwudi14010/dsh-global-find
Ctrl+F find bar that searches the whole DSH frame at once: every mounted panel including the ones hidden or collapsed right now, with a scope switch for the current conversation only. Matches that land in a region you cannot see are reported as such instead of being silently skipped or jumped to, and highlighting uses the CSS Custom Highlight API so no DOM node is modified.
Installation
dsh plugin --profile web add github:houwudi14010/dsh-global-findREADME
dsh-global-find
Ctrl+F 查找条,搜的是整个 DSH 界面,不只是当前对话。
- Ctrl+F(Web 端为 Ctrl+Alt+F)打开右上角查找条,Enter / Shift+Enter 上下跳,Esc 关闭。
- 两种范围:整个界面(含所有面板) 与 当前对话,底部小 tab 切换。
- 结果列表每条都标着它属于哪个区域(
对话/侧栏/右侧栏/ 主区面板名):单击选中,双击跳到那一处。 - 长会话不用先滑上去:查找前会驱动对话自己的「加载更早」翻页,把已加载窗口之上的历史拉进 DOM 再匹配,查完把你原来的滚动位置还原。翻页有页数与时间上限,触顶会在底部说明。
- 换会话、对话继续流式输出时,输入与当前命中位置都保持不动,不会被打回去重来。
- 被折叠、被隐藏的面板里的文字也会被找到;命中落在看不见的区域时会明确提示,而不是假装跳到那里。
- 高亮用 CSS Custom Highlight API 直接上色,不改动对话 DOM,长会话不会因此重排。
- 纯客户端插件:没有模型调用、没有网络请求、没有文件读写、不注入
document.body。
与浏览器自带 Ctrl+F 的区别:浏览器原生查找只能搜已渲染的 DOM;本插件先翻页把历史拉齐、再遍历界面上所有挂载面板(含
visibility:hidden/inert的部分),对文本节点做匹配,因此侧栏、右栏、以及长会话最早的那几轮同样搜得到。
安装
dsh plugin --profile web add dsh-global-find
桌面客户端(DSH Desktop)装完需要完全退出并重启宿主进程才生效:客户端 bundle 的 rev 是内容哈希 + immutable 缓存,宿主不重启不会重扫插件目录,页面「重建」拿不到新字节。
用法
| 操作 | 桌面端 | Web |
|---|---|---|
| 打开查找条 | Ctrl+F / Cmd+F | Ctrl+Alt+F / Cmd+Alt+F |
| 下一个 / 上一个 | Enter / Shift+Enter、F3 / Shift+F3 | 同 |
| 关闭 | Esc | 同 |
| 切换范围 | 底部 全部 / 对话 | 同 |
| 选中某一条结果 | 单击结果列表里的那一行 | 同 |
| 跳到某一条结果 | 双击那一行(或选中后按 Enter) | 同 |
Web profile 下纯 Ctrl+F 会被浏览器原生查找占用,dsh-client-shortcuts 的白名单也不放行这个组合,所以 Web 端绑的是 Ctrl+Alt+F。
兼容性
- 需要 DSH ≥ 0.2.1(
shell.overlay槽位与快捷键服务)。 - 纯前端插件,不含 Host 侧行为:
index.js的apply()为空。
开发
# 语法与 manifest 自检
node --check client.js
node -e "import('./index.js').then(m => console.log(typeof m.apply))"
目录里没有构建步骤,client.js 就是发布产物。
English
A Ctrl+F find bar for the whole DSH frame, not just the visible conversation.
Ctrl+F (desktop) or Ctrl+Alt+F (web) opens a bar in the top-right corner. It searches every mounted panel at once — including panels that are currently collapsed, hidden or inert — and highlights matches with the CSS Custom Highlight API, so the conversation DOM is never mutated. Two scopes (whole frame / current conversation) label and list results by area: every row shows whether it came from the chat, the sidebar, the right bar or a named panel, and clicking a row jumps there.
Long conversations are paged. Before matching, the bar drives the conversation's own "load earlier" control so history above the loaded window becomes searchable without the reader scrolling up first, then restores the original scroll position. The query and the active match survive session switches and streaming output.
Client-only: no model calls, no network requests, no file access, nothing appended to document.body.
dsh plugin --profile web add dsh-global-find
Requires DSH ≥ 0.2.1. On the desktop app, restart the host process after installing — the client bundle is served under an immutable, content-hashed revision, so a page reload alone keeps serving the previous bytes.
License
MIT
Ähnliche Plugins
dsh-web (dsh-task-board)
zhu1090093659/dsh-web
dsh-web (dsh-web-all)
zhu1090093659/dsh-web
dsh-TUI
ccch1mneyyy/dsh-tui
dsh-web-ui (dsh-task-board)
zhu1090093659/dsh-web-ui