@civilization/dsh-workspace-files 0.2.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -1
- package/lib/client.js +655 -60
- package/lib/client.js.map +1 -1
- package/lib/index.js +198 -36
- package/package.json +8 -2
- package/src/client/icons.tsx +27 -0
- package/src/client/index.tsx +587 -8
- package/src/files.ts +75 -34
- package/src/index.ts +132 -4
package/README.md
CHANGED
|
@@ -17,7 +17,12 @@ DeepSeek Harness (DSH) 原生增强型文件浏览器插件。
|
|
|
17
17
|
- 🎯 **官方原生交互式 Tag 胶囊引用 (ReferenceChipNode)**:
|
|
18
18
|
- 深度贯通会话输入框的 Lexical AST 引擎,点击 `@引用` 直接生成与官方敲 `@` 回车 100% 一模一样带图标的深色圆角 **Tag 胶囊卡片**(`[📁 folder/]` 与 `[📄 file]`);
|
|
19
19
|
- 智能消除用户光标前已键入的 `@` 字符,杜绝 `@@path` 冗余;文件与文件夹均支持一键引用。
|
|
20
|
-
- 📂
|
|
20
|
+
- 📂 **在文件资源管理器中显示 (Reveal in Explorer)**:
|
|
21
|
+
- 悬浮在文件上点击,即刻在 Windows 资源管理器中打开并高亮选中该文件(`explorer.exe /select`);
|
|
22
|
+
- 悬浮在目录上点击,直接在资源管理器中打开该文件夹,告别手动层层翻找目录的繁琐操作。
|
|
23
|
+
- 🚀 **用系统默认应用打开 (Open with Default App)**:
|
|
24
|
+
- 悬浮在任意文件/目录上点击,直接调起系统默认程序打开;对于图片、音频、PDF、Office 文档等外部文件极为方便。
|
|
25
|
+
- 📁 **默认折叠与持久化展开记忆 (localStorage)**:
|
|
21
26
|
- 首次打开默认全部折叠关闭,清爽简洁;
|
|
22
27
|
- 用户展开的每一个文件夹均按工作区独立持久化记忆,无论刷新页面还是切换会话再切回,均完美保持展开状态。
|
|
23
28
|
- 📋 **快速复制相对路径**:支持一键复制文件/目录的相对工作区路径,方便在终端或配置中直接使用。
|
|
@@ -27,6 +32,22 @@ DeepSeek Harness (DSH) 原生增强型文件浏览器插件。
|
|
|
27
32
|
|
|
28
33
|
---
|
|
29
34
|
|
|
35
|
+
## 插件配置项 (设置中心 -> 插件 -> 插件配置)
|
|
36
|
+
|
|
37
|
+
可在 DSH 设置界面的「插件配置」列表展开卡片,或直接在 `cordis.patch.yml` 中自定义配置:
|
|
38
|
+
|
|
39
|
+
- **`maxDepth`** (number,默认 `16`,范围 1~100):工作区文件树扫描的最大文件夹深度(层级)。
|
|
40
|
+
- **`showHidden`** (boolean,默认 `false`):默认是否显示以点开头的隐藏文件。
|
|
41
|
+
|
|
42
|
+
```yaml
|
|
43
|
+
- id: dsh-workspace-files
|
|
44
|
+
config:
|
|
45
|
+
maxDepth: 20
|
|
46
|
+
showHidden: false
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
30
51
|
## 安装
|
|
31
52
|
|
|
32
53
|
```powershell
|