dsh-nested-workspaces 1.0.0 → 2.0.0

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 CHANGED
@@ -3,9 +3,11 @@
3
3
  Nested child workspaces for the DeepSeek Harness sidebar.
4
4
 
5
5
  DeepSeek Harness lists every workspace as a peer. This plugin turns that list
6
- into a tree: a workspace can own child workspaces that live inside its directory,
7
- sessions can be filed under any workspace, and the section title becomes yours to
8
- name.
6
+ into a tree: a workspace can own child workspace *groups*, sessions can be filed
7
+ under any group, and the section title becomes yours to name.
8
+
9
+ A child is a grouping record kept by this plugin, not a new folder on disk — the
10
+ project directory is left exactly as it was.
9
11
 
10
12
  ## What it does
11
13
 
@@ -14,10 +16,14 @@ name.
14
16
  the same from the keyboard. The name is stored in this browser and falls back to
15
17
  the built-in label when emptied.
16
18
  - **Add child workspace.** Right-click a workspace (or use its `…` menu) and pick
17
- **添加子工作区 / Add child workspace**. The dialog asks for a folder name and
18
- creates that directory *inside* the parent workspace's directory, then registers
19
- it as a workspace. Because the child path sits under the parent path, the tree
20
- nests it automatically.
19
+ **添加子工作区 / Add child workspace**. The dialog asks for a name and records a
20
+ child group under that workspace. **Nothing is created on disk** — the child is a
21
+ grouping kept in this plugin's own browser storage, so you can split a project
22
+ into sections without littering the repository with empty folders.
23
+ - **New sessions run where the code is.** The `+` on a child group starts the
24
+ session in the nearest real workspace above it (the root, or the parent group's
25
+ real workspace), then files the new row under the child. The child never becomes
26
+ a workspace, so DSH's path binding stays consistent.
21
27
  - **File sessions under any workspace.** Drag a session row onto a workspace
22
28
  header, or drop it above/below another session to place it exactly. The `…` menu
23
29
  on every session also offers **移动到工作区 / Move to workspace** with one entry
@@ -25,6 +31,25 @@ name.
25
31
  - **Every row keeps its affordances.** Each workspace row, child or not, has the
26
32
  same `…` menu (add child, new session, rename, delete) and the same
27
33
  new-session button.
34
+ - **Reorder workspaces.** Drag a workspace row above or below another row that
35
+ shares its parent: a child moves among its siblings, a root moves among the
36
+ roots, and a drag that would cross the parent boundary is refused so a child
37
+ can never be hoisted out of the workspace it belongs to. A newly created child
38
+ is anchored above its existing siblings instead of below them.
39
+ - **Last-used time.** Every session row shows how long ago it was last used
40
+ (`刚刚 / 12分钟 / 3小时 / 2天`, `now / 12min / 3h / 2d`), hover-swapped for the
41
+ row buttons exactly like the shipped browser. The full sentence (`12分钟前`)
42
+ is the tooltip.
43
+ - **Pin.** The row's pin button pins the session; pinned rows show a filled pin
44
+ glyph beside the time and sort to the top of their workspace. The session `…`
45
+ menu offers the same toggle as **置顶 / 取消置顶**.
46
+ - **Row status, like the shipped browser.** An idle session row draws nothing in
47
+ front of its title. While the session is working it shows the same rotating
48
+ ring the built-in sidebar uses; a pending approval, plan review or question
49
+ shows the amber warning dot, and an unread completion shows the green dot.
50
+ - **Nested indent.** A session row sitting inside a child workspace is indented
51
+ by the same 12px step as that child, so sessions line up under their own
52
+ workspace instead of under the root.
28
53
  - **Workspace rename and delete.** Double-click a workspace title to rename it in
29
54
  place; the `…` menu offers the same plus a delete confirmation. Deleting a
30
55
  workspace only removes it from the sidebar — the folder and its sessions stay on
@@ -42,8 +67,13 @@ directory with the workspace path. A session therefore cannot be re-homed to a
42
67
  workspace with a different path. Filing a session under another workspace is a
43
68
  *view* assignment kept by this plugin: the row is shown under the workspace you
44
69
  dropped it on, and open/fork/archive keep working, but the session's own working
45
- directory is unchanged. New sessions you start from a child workspace do get the
46
- child directory as their working directory, because they are created there.
70
+ directory is unchanged.
71
+
72
+ A child workspace is a group, so it has no directory of its own either — the `+`
73
+ on a child starts its session in the nearest real workspace above it, and the
74
+ session then appears under that child. Deleting a child group deletes the record
75
+ and its nested groups; the sessions it showed return to the workspace that really
76
+ owns them.
47
77
 
48
78
  This plugin replaces the shipped workspace browser (it registers the same sidebar
49
79
  seat at a lower priority, which is the only way to own the section title and the
@@ -52,15 +82,24 @@ row list). A few things come with that trade:
52
82
  - Workspace rows carry this plugin's own menu instead of the shipped one: rename,
53
83
  delete, new session and add child workspace all live there. Entries that other
54
84
  plugins contribute to the *shipped* workspace context menu are not shown here.
55
- - The shipped per-row **pin** and **archive** hover buttons are gone. Session
56
- pinning and per-session archiving stay available from the session's own `…`
57
- menu, which is still the shipped menu.
58
- - The child seats the shipped browser used to expose
85
+ - Session rows carry this plugin's own pin button and resting cell (time + pin
86
+ glyph) instead of the shipped ones, and per-session archiving stays in the
87
+ session's own `…` menu, which is still the shipped menu.
88
+ - The shipped browser's child seats
59
89
  (`sidebar.workspaces.directoryFlow`, `sidebar.workspaces.session.row.action`,
60
90
  `sidebar.session.row.leading`, `sidebar.session.row.trailing`,
61
91
  `sidebar.session.row.hover`) are not rendered on these rows, so additions other
62
92
  plugins place in them will not appear inside this section. The session `…` menu
63
93
  is unaffected and remains the supported extension point.
94
+ - **Add child workspace needs no Host support at all.** Earlier versions created
95
+ a real directory, which failed on a Host whose composed directory picker only
96
+ serves the OS chooser (the `native` capability cannot
97
+ `createDirectory`). Children are now records in the browser store, so the
98
+ add-child dialog works everywhere and never touches the filesystem.
99
+ - **Upgrading from 1.x.** Children made by 1.x are real folders that were also
100
+ registered with the Host, so they still show up as ordinary workspaces. Delete
101
+ them here (the folder stays on disk) and add them again as groups if you want
102
+ them to become records.
64
103
 
65
104
  ## Using it
66
105
 
@@ -70,9 +109,13 @@ Right-click any workspace in the sidebar.
70
109
  | --- | --- |
71
110
  | Rename the section title | double-click the 「工作区」 label |
72
111
  | Add a child workspace | workspace `…` menu → 添加子工作区 |
112
+ | Reorder workspaces | drag a workspace row above or below a sibling that shares its parent |
73
113
  | New session in a child | the `+` on the child's row |
74
114
  | File a session under another workspace | drag the session row, or session `…` menu → 移动到工作区 |
75
115
  | Rename / delete a workspace | double-click its title, or its `…` menu |
116
+ | Pin / unpin a session | the pin button on its row, or session `…` menu → 置顶 |
117
+ | See the last-used time | the resting label on its row; hover for the sentence |
118
+ | See whether a session is working | the rotating ring in front of its title |
76
119
  | Show archived sessions | the archive button in the section header |
77
120
 
78
121
  ## Languages