Preface¶
When managing multiple workspaces in DSH Desktop, the sidebar can list paths and sessions, but jumping from the list to a local directory often requires memorizing paths and manually opening Explorer or Finder. The sidebar also supports renaming, but it is not integrated into the same set of quick actions as “Open Folder.” The following introduces the community client plugin dsh-open-workspace-folder (maintainer Homeless-Attila), which provides a right-click menu on workspace rows, consolidating open local directory, reveal in file manager, copy absolute path, and in-place rename into one place, and reuses DSH’s built-in Session Remote and workspace rename logic, with behavior consistent with the desktop “Open In” and sidebar rename.
What Is This¶
dsh-open-workspace-folder is a client plugin (platform: web) for DSH Desktop, with a very small footprint: no network requests, no child processes. The host-side index.js is an empty implementation; functionality is concentrated in client.js, which is attached to the desktop profile’s client bundle via dsh.bundle.patch. The current version in package.json is 1.1.0, license MIT. The plugin has not yet been published to npm; installation requires DSH Desktop to be installed and dsh to be in PATH.
Core Features¶
The capabilities listed in the README are as follows, all verifiable from publicly available documentation:
- Open workspace folder: Opens the workspace root directory in the system file manager; the menu item is available, and the Enter key also triggers it. Windows uses Explorer, macOS uses Finder, Linux uses
xdg-open, consistent with DSH’s “Open In” (internally callssession.openWorkspacePath()). - Reveal in file manager: Uses
action: 'reveal'to select the directory in the file manager. - Rename workspace: Enter a new name within the menu, going through
workspace.rename(or preferablyctx.get('workspaces').rename), the same logic as sidebar rename; it persists after restart, and other windows will sync. If the name is empty or duplicates an existing workspace, a prompt appears at the bottom of the menu, no silent failure. - Copy path: Writes the workspace absolute path to the clipboard.
Interaction aspects: The menu follows DSH’s light/dark theme; supports Esc to close, arrow key navigation, click outside to close; icons are inline SVG, no external fonts, images, or CDN.
If DSH runs in a regular browser and the host does not allow opening local paths, the open-related items will display “This window does not support opening local folders”; copy path and rename remain available.
Installation and Activation¶
After installation, you must fully exit and restart DSH Desktop (refreshing the window alone is not enough) for the new client bundle to load. The desktop does not have client HMR, so after modifying code you also need to fully restart.
Install Directly from GitHub¶
dsh plugin --profile desktop add github:Homeless-Attila/dsh-open-workspace-folder
This command writes the plugin directory to the desktop profile (link: or git dependency), and based on the dsh.bundle.patch in the package, appends dsh-open-workspace-folder to dsh.profile.bundles, and validates that the bundle patch is composable.
Install from Local Directory¶
If you have already obtained the plugin directory locally (replace the path with the actual location on your machine):
dsh plugin --profile desktop add .\dsh-open-workspace-folder
When installed as link:, after moving the plugin directory you need to run add again for the new path.
README note: After publishing to npm, you can directly run dsh plugin --profile desktop add dsh-open-workspace-folder; as of this documentation writing, it has not yet been published.
Typical Usage¶
- Find the target workspace in the left workspace tree.
- Right-click the workspace row (the plugin only processes workspace
treeitems withdata-row-key="workspace:<id>"andaria-expanded; session rows and the “Ungrouped” pseudo-workspace are ignored). - Choose “Open Workspace Folder”, or “Reveal in File Manager”, or “Rename Workspace” then enter a name,
Enterto save,Escto cancel.
Rename constraints are the same as the sidebar: the name cannot be empty and cannot duplicate an existing workspace; error messages appear at the bottom of the menu, and the menu stays open for easy retry.
Uninstall:
dsh plugin --profile desktop remove dsh-open-workspace-folder
Then restart DSH Desktop.
Implementation Notes (for Troubleshooting and Secondary Development)¶
The plugin registers a menu component to shell.overlay via ctx.get('slots'), and subscribes to workspace snapshots from useWorkspaces. Open and locate examples (excerpted from README):
const remote = ctx.get('remote')
await remote.session.openWorkspacePath({ path })
await remote.session.openWorkspacePath({ path, action: 'reveal' })
Rename example:
const remote = ctx.get('remote')
const result = await remote.workspace.rename({ workspaceId, title })
The client module needs to export Cordis injection exports.inject = ['remote', 'remote.session'], otherwise it will report at runtime that remote.session cannot be obtained.
Local validation:
npm run check # node --check index.js and client.js
npm test # smoke test: bundle registration, exports, no network calls
Use Cases and Considerations¶
Suitable for developers who switch between multiple local workspaces in DSH Desktop long-term, want to memorize fewer paths, and want to enter the file manager with fewer clicks. The plugin runs on the client with the current dsh process permissions; before installation, it is recommended to read the GitHub repository source code and MIT license, and judge for yourself whether to include it in your desktop profile.
Known limitation: The menu depends on the DOM structure of workspace rows (data-row-key, aria-expanded, etc.); if the DSH frontend adjusts these markers, client.js needs to be modified accordingly.
The DSH ecosystem emphasizes “everything is a plugin”; the community directory site has no official affiliation with DeepSeek or Huanfang (High-Flyer); this plugin comes from community maintainers, not an official app store built-in item.
Conclusion¶
dsh-open-workspace-folder connects “Open Folder, Locate, Copy Path, Rename” to the workspace right-click menu, and delegates to DSH’s existing APIs, avoiding hand-assembling system commands. Directory page: SkillHub - dsh-open-workspace-folder; source code and full documentation: GitHub - Homeless-Attila/dsh-open-workspace-folder.