@dsh-xhl/dsh-file-explorer 0.1.1 → 0.1.2
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 +1 -1
- package/cordis.patch.yml +8 -8
- package/lib/client.js +8 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
- **编辑器**(默认):点击打开全屏文件预览 / 编辑弹窗(Ctrl+P 亦可)
|
|
9
9
|
- **文件夹**:点击直接打开会话工作区所在的**系统文件夹**(Windows `explorer` / macOS `open` / Linux `xdg-open`)
|
|
10
10
|
- **VSCode**:点击用 `code` 命令行在 **VS Code** 中打开会话工作区(自动探测安装位置 / PATH)
|
|
11
|
-
- 选择记忆在 localStorage
|
|
11
|
+
- 选择记忆在 localStorage,点击后底部提示确认打开的路径;下拉选中某项会先切换默认打开方式,随后立即执行对应的打开动作
|
|
12
12
|
- **文件列表**:左侧目录树(跳过 `node_modules`/`.git`/`dist` 等)
|
|
13
13
|
- **按文件名过滤**:输入即过滤
|
|
14
14
|
- **全文搜索**:正则 / 大小写 / 全词匹配、包含/排除过滤,结果按文件分组、命中高亮,点击跳转并高亮匹配
|
package/cordis.patch.yml
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# dsh-file-explorer bundle patch
|
|
2
|
-
#
|
|
3
|
-
# 通过 bundle 通道挂载:
|
|
4
|
-
# dsh plugin --profile <name> add @dsh-xhl/dsh-file-explorer@<version>
|
|
5
|
-
# 或手动把 '@dsh-xhl/dsh-file-explorer' 加进 profile 的 dsh.profile.bundles 并 link 依赖。
|
|
6
|
-
- insert:
|
|
7
|
-
- id: dsh-file-explorer
|
|
8
|
-
name: '@dsh-xhl/dsh-file-explorer'
|
|
1
|
+
# dsh-file-explorer bundle patch
|
|
2
|
+
#
|
|
3
|
+
# 通过 bundle 通道挂载:
|
|
4
|
+
# dsh plugin --profile <name> add @dsh-xhl/dsh-file-explorer@<version>
|
|
5
|
+
# 或手动把 '@dsh-xhl/dsh-file-explorer' 加进 profile 的 dsh.profile.bundles 并 link 依赖。
|
|
6
|
+
- insert:
|
|
7
|
+
- id: dsh-file-explorer
|
|
8
|
+
name: '@dsh-xhl/dsh-file-explorer'
|
package/lib/client.js
CHANGED
|
@@ -37969,8 +37969,9 @@ window.__ModuleLoader__.load({
|
|
|
37969
37969
|
* The ButtonGroup registers into `conversation.session.header.utilities`:
|
|
37970
37970
|
* the left button carries the active mode's icon and triggers its action,
|
|
37971
37971
|
* the right button opens a dropdown to switch between 编辑器 (editor),
|
|
37972
|
-
* 文件夹 (folder), and VSCode.
|
|
37973
|
-
*
|
|
37972
|
+
* 文件夹 (folder), and VSCode. Selecting an entry both persists it as the
|
|
37973
|
+
* new default mode and immediately runs that mode's open action. The choice
|
|
37974
|
+
* is persisted in localStorage so it survives reloads.
|
|
37974
37975
|
*
|
|
37975
37976
|
* Session binding: every /filex request is conversation-scoped, so the modal
|
|
37976
37977
|
* must know WHICH session it belongs to — the host resolves the workspace
|
|
@@ -38209,9 +38210,12 @@ window.__ModuleLoader__.load({
|
|
|
38209
38210
|
selectedId: mode,
|
|
38210
38211
|
items,
|
|
38211
38212
|
onSelect: (id) => {
|
|
38212
|
-
|
|
38213
|
-
|
|
38213
|
+
const next = id === "folder" || id === "vscode" ? id : "editor";
|
|
38214
|
+
setMode(next);
|
|
38214
38215
|
setMenuOpen(false);
|
|
38216
|
+
if (next === "folder") openSystemFolder(props.sessionId, sessionCwd);
|
|
38217
|
+
else if (next === "vscode") openInVscode(props.sessionId, sessionCwd);
|
|
38218
|
+
else openExplorer(props.sessionId);
|
|
38215
38219
|
},
|
|
38216
38220
|
onClose: () => setMenuOpen(false),
|
|
38217
38221
|
anchor: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
package/package.json
CHANGED