dsh-session-grep:在工作区会话里做真正的子串搜索
DSH 内置 Ctrl+K 会话搜索使用 SQLite FTS5 的 unicode61 分词器,只匹配整词与短语,中文连续文本中的子串往往无法命中。dsh-session-grep 由 chenshanhan0711 维护,在本地解压 session.v4.jsonl.zstd 后做大小写不敏感的 indexOf,在对话页头提供搜索胶囊,支持跨会话轮询展示、工具输出可选、最多 40 条结果。安装可通过 npm 的 dsh-session-grep 或本地目录 add,无网络请求。文章说明安装命令、典型操作与 Markdown 高亮等限制。
Read Moredsh-session-grep: Search for original text in DSH multi-frame zstd sessions by sequence
DSH saves sessions as multi-frame zstd, so standard decompression and grep cannot search the content. dsh-session-grep decompresses by splitting frames and indexes them by sequence number (seq), providing read-only commands such as list, title, find, dump, and around. It supports installation via npx/npm and optional bundle plugins. It requires Node.js >= 22.15, reads from $DSH_HOME/sessions by default (configurable via DSH_SESSION_ROOT), and operates locally without requiring an internet connection.
Read More