Introduction¶
As more plugins are installed, the DSH sidebar grows row by row. The panels you actually open and use frequently day in and day out are always just the same few; the rest aren’t redundant—they’ve simply fallen out of mind—yet they still sit in your scroll path every single time.
dsh-sidebar-shrink doesn’t delete these panels; it simply tucks them away into the “More” menu.
Plugin Overview¶
dsh-sidebar-shrink is a client-side plugin for DSH, maintained by IvesCheung. It moves infrequently used panels out of the sidebar and into the “More” menu, remembers your choices, and provides a panel management overlay plus a “Collapse All Workspaces” feature to keep the sidebar lean.
Core Features¶
- Remembered panel collapse: Move seldom-used panels (Lingshu, Context Insights, Skills Center, etc.) from the sidebar into “More.” After refreshing or restarting DSH, the panels stay in “More”—no entry points lost.
- “Sidebar Management…” overlay: At the top of the “More” menu, a panel list with toggles lets you directly control which panels stay or go—no need to hunt for the floating pin icon. “Plugin Market” is a fixed shell item, marked as “Always On” and cannot be disabled.
- One-click collapse all workspaces: An extra button in the workspace title bar collapses all expanded groups at once; the state is also persisted to disk.
- No changes to shell internals: It only interacts with controls the user can already click, then records the outcome. Upgrading DSH won’t break it, and it won’t conflict with other plugins over rendering.
Installation¶
From the awesome-dsh-plugin list¶
The entry is listed under the ui category in awesome-dsh-plugin. Once indexed, you can install it directly using the dsh plugin add command provided in the list.
Local directory¶
In the DSH interface, select “Plugins → Add Plugin → Select local directory dsh-sidebar-shrink.”
Command line¶
dsh plugin add git+https://github.com/IvesCheung/dsh-sidebar-shrink.git
Mounting without install¶
If your profile’s dependency tree isn’t suitable for reinstalling, you can mount it via a symlink + a patch line:
node -e "require('fs').symlinkSync('C:/path/to/dsh-sidebar-shrink','C:/Users/<you>/.dsh/profiles/web/node_modules/dsh-sidebar-shrink','junction')"
Then append the following to cordis.patch.yml in the same directory:
- insert:
- id: sidebar-shrink
name: dsh-sidebar-shrink
config: {}
When patchReload: live is set, a page refresh is enough to activate it.
Typical Usage¶
- Open the “More” menu, click “Sidebar Management…,” and use the toggles to disable panels you rarely use; or hover over a panel row and click the pin icon directly.
- Click “Collapse All Workspaces” in the workspace title bar to tidy everything up in one go.
- To undo, simply re-expand the group or click the panel back from “More”—it restores automatically. The “Reset to Default” button in the overlay clears all recorded states.
Platform & Limitations¶
- Platforms: Windows / macOS / Linux share the same codebase. The implementation relies solely on DOM,
localStorage, and native events—noprocess, no path manipulation, no platform-specific branching. All mount points are the shell’s owndata-sidebar-scrollport,data-row-key,data-sidebar-workspace-header, andaria-labelattributes. - Known limitations:
- Panels are keyed by display name, so switching the UI language requires re-collapsing.
- Only meaningful in the wide sidebar (the one with text labels); the narrow column only shows icons anyway.
- If upstream changes the
aria-labeltext on the unpin control,UNPIN_PREFIXESmust be updated in sync.
Ecosystem Note¶
DSH’s philosophy is “everything is a plugin.” The community directory is an independent site with no official affiliation to DeepSeek or High-Flyer.
dsh-sidebar-shrink is licensed under MIT.
Conclusion¶
dsh-sidebar-shrink brings DSH’s sidebar back to what you actually use, through two directions: “remember” and “manage.” It’s well-suited for developers who install a large number of panels and want to keep their sidebar clean and focused.