dsh-session-dir: Directory-Based Management of DSH Sidebar Sessions

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

  1. Directory Tree View: Replaces the DSH sidebar session list with a directory tree.
  2. Interactive Operations: Supports drag-and-drop movement and session sorting (including free adjustment of order within directories and within the root directory).
  3. Session Management: Provides session renaming and archiving capabilities.
  4. Creation Semantics: Follows the official “single blank session” semantics when creating new sessions.
  5. 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.workspaces slot 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.

Plugin Directory Page
GitHub Repository

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye