In the daily use of DSH, as the number of workspace sessions increases, the session list in the sidebar becomes lengthy and difficult to categorize. The official list format lacks a hierarchical structure, resulting in inefficient management. The dsh-session-dir plugin aims to replace the sidebar session list with a directory tree structure, providing a more intuitive approach to grouping and management.
Plugin Introduction¶
This is a straightforward workspace session grouping plugin maintained by developer fuyu2022. It transforms the sidebar from a traditional session list into a directory tree akin to the VSCode Explorer, supporting operations such as dragging, renaming, and archiving to help developers better organize their sessions.
Core Features¶
- Directory Tree View: Replaces the DSH sidebar session list with a directory tree.
- Interactive Operations: Supports drag-and-drop movement and session sorting (including free adjustment of order within directories and within the root directory).
- Session Management: Provides session renaming and archiving capabilities.
- Creation Semantics: Follows the official “single blank session” semantics when creating new sessions.
- Cross-Workspace Search: Supports searching for sessions across workspaces (searching by title only / including conversation content).
Installation and Activation¶
To install this plugin, run the following command:
dsh plugin --profile web add github:fuyu2022/dsh-session-dir#main
After installation, you must restart DSH for the plugin to take effect. You can verify that the bundle patch has loaded correctly using the following command:
dsh --profile web --dump-config | grep -A2 dsh-session-dir
Notes¶
- Slot Overwrite: The plugin overrides the official
sidebar.workspacesslot with a priority of-100. - Plugin Conflicts: When enabling other plugins that also override this slot (such as
dsh-better-sidebar), ensure they have different priorities. Otherwise, SlotCore will throw an error due to duplicate registration at the same priority level. - Interface Language: Currently available only in Chinese.
Summary¶
This plugin resolves the issue of cluttered session management in the DSH sidebar by introducing a directory tree structure and providing practical features like drag-and-drop and renaming. It is a valuable utility for developers who need to manage a large volume of sessions with fine-grained control.