Introduction¶
DSH allows agents to perform file operations via plugins. Operating directly on file paths or links within the web interface is usually cumbersome. This plugin solves this problem by adding a Codex-style right-click menu to the DSH interface. It does not rely on other bundled dependencies and uses only Node built-in modules.
What is it¶
A client plugin maintained by AL1ghtm3ter. This package is not yet published on npm. It adds a right-click menu to the DSH web interface, supporting operations on files, file paths in conversations, and hyperlinks.
Core Features¶
The plugin provides a right-click menu on specific objects:
File Actions¶
Right-clicking a row in the “Files” tab of the right sidebar, a file path in a conversation message, or a rendered file mention will show the following options:
* Preview in DSH / Expand in file tree
* Open with default application
* Open With
* Open in File Explorer
* Copy path (absolute path)
* Copy relative path
* Copy file name
* Copy file content
* Save As
Link Actions¶
Right-clicking a hyperlink will show:
* Open in sidebar
* Open in external browser
* Copy link address
* Copy link text
* Copy as Markdown link
If the link points to a file (e.g., dsh-resource://file/…), both link actions and full file actions will appear in the same menu.
Installation and Activation¶
Use the official installation command:
dsh plugin --profile <profile> add github:AL1ghtm3ter/dsh-right-click-menu
Restart the application after installation to update the host half-code.
Use Cases¶
- File Tree Operations: Right-click a row in the “Files” tab of the right sidebar to choose expand or preview.
- Conversation Path Operations: Right-click a file path (inline code or body text) in a conversation message; the plugin will first verify if the file exists based on the conversation workspace.
- Hyperlink Operations: Right-click any hyperlink to open it in the sidebar or an external browser.
Notes¶
- File Content Copy: There is a 1 MiB limit; binary files will be rejected.
- Route Validation: Validation logic is determined by returning 401 or 403.
- Update Method: Refresh the page (Ctrl+R) after modifying browser half-code; restart the application to modify host half-code.
- Language: Menus and prompts follow the DSH interface language.
Uninstall¶
Uninstall using plugin_manager:
dsh plugin --profile <profile> remove dsh-right-click-menu
Ecosystem and Source Code¶
More details and source code can be found on GitHub:
https://github.com/AL1ghtm3ter/dsh-right-click-menu