dsh-file-to-chat: Send DeepSeek Harness Sidebar Selections into Chat with Notes
feifiefei/dsh-file-to-chat
A DSH right-sidebar file helper: annotate a text selection, an Excel range, or a right-clicked file and send the quote plus your note into the current chat, where it collapses into a small expandable capsule.
dsh-file-to-chat is a DSH plugin that removes the copy-paste chore of quoting documents inside DeepSeek Harness Web and keeps long quotes from flooding the transcript. It covers text, code, Markdown, Excel, CSV, TSV plus Word, PPT and PDF preview renderers, floating an annotate button over your selection and locating the quote by line number, worksheet range or page number. Sent quotes fold into an expandable capsule so the model still receives every character, and the plugin only fills the draft while you press send.
How to Install
dsh plugin --profile web add github:feifiefei/dsh-file-to-chat- Category
- UI & Experience
- Platform
- DSH Plugin
- Author
- feifiefei
- Distribution
- Plugin
dsh-file-to-chat Key Features
dsh-file-to-chat Repo Summary
What Does It Do?
feifiefei/dsh-file-to-chat is a DSH plugin for DeepSeek Harness that sends a selection from the right-sidebar document preview, or a whole file, into the current chat together with your note. It removes the copy-paste chore of quoting a document and keeps the transcript from being flooded by long quotes. Maintained by feifiefei under the MIT license, it runs entirely on the browser side with no host routes or extra Node dependencies.
Core Features
- Annotate selections in document previews: works across text/code/Markdown, Excel/CSV/TSV, and Word/PPT/PDF renderers, locating the quote by line number, worksheet range, or page number respectively.
- Excel range capture: dragging a cell range converts the values into a Markdown table, limited to the current worksheet and 200 inlined rows.
- File-tree context menu: send to chat, send path only, send a directory listing, open with the default program, or copy the full or relative path.
- Collapsible quote capsules: the quote block in a sent message folds into a small capsule, so the model still receives the full text while the chat window shows only the title.
- Draft-only behavior: the plugin fills the input box and leaves sending to you, so you control the pace.
How to Use This Plugin?
Open the Files tab in the DSH right sidebar and click any file to enter preview, then select text (text/Word/PDF) or drag a range in a table (Excel). An annotate button floats above the selection; open it, write a note (it may be empty), and press Enter or click send to chat. A capsule then appears in the input box, and you send it whenever you like. Inside the note box, Enter sends, Shift+Enter adds a line break, and Esc cancels; the button only appears after you release the drag. Only the right sidebar can trigger it, Word/PPT/PDF selections locate by page only, and files whose text cannot be read will say so instead of pretending to succeed.
How to Troubleshoot This Plugin?
The plugin relies on several internal DSH DOM anchors; after a DSH upgrade, if those anchors change, a built-in self-check logs a single console warning instead of failing silently, and you can repair it following the official instructions. For detailed logs, enable the debug switch once in the browser console and refresh the page, then turn it back off after troubleshooting. If an uninstall is refused with an agents-are-running message, stop the active session first and try again.
This page is an independent rewrite of the plugin's official README — for authoritative documentation and the latest changes, refer to the source: feifiefei/dsh-file-to-chat. The plugin is third-party code that runs on your machine once installed; inclusion does not imply endorsement — please review the source before installing.
