asxiuxiu/dsh-quick-open ↗★ 0

dsh-quick-open

实现VSCode风格的Ctrl+P快速打开文件 适合需要在DSH网页端快速模糊搜索、预览工作区文件并引用到对话中的用户。

套件
dsh-quick-open
相容性
待驗證
Harness 依賴範圍
>=0.1.1-rc.1 <0.1.2-0 || >=0.1.2-rc.1 <0.1.3-0 || >=0.1.5-rc.1 <0.2.0-0
Cordis 依賴範圍
^4.0.2
版本
0.2.1
最近更新
2026年9月20日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:asxiuxiu/dsh-quick-open

配置(可选)

开箱即用:没有配置文件时使用内置的语言中立、项目中立默认规则(只排除各生态公认的噪音目录 + 跨语言通用源码后缀)。

需要定制时,「设置 → Quick Open 索引」编辑当前工作区的 .dsh/quick-open.json:

{
  "version": 1,
  "excludeDirs": ["_install", "build/Engine"],      // 裸名字任意深度;带斜杠锚定根;**/ 任意深度
  "includeDirs": ["build/p/include"],               // 优先级高于排除——救回被误伤的生成树
  "includeExtensions": [".h", ".cpp", ".py", ".md"],
  "includeFilenames": ["CMakeLists.txt"],
  "includeDirectories": true,
  "extraRoots": [                                    // 工作区外的目录一并索引
    { "path": "E:\\path\\to\\sibling-repo\\_source", "label": "sibling/_source" }
  ]
}

保存原子写入、3 秒内生效、无需重启。规则为什么按工作区存放、后缀白名单的固有盲区、includeDirs 为什么能救回生成树——详见下文架构与 docs/。