zmm863-commits/dsh-paperclip
DSH Web GUI paperclip button: a single 📎 button in the composer that opens a file picker (drag & drop supported) and inserts file contents into the textarea. 在 DSH Web 输入框右侧添加回形针按钮,点击选择/拖拽文件,内容自动插入输入框。
Project Overview项目介绍
dsh-paperclip is a DSH Web GUI plugin that adds a paperclip button next to the composer. Click or drag files to insert their contents as fenced code blocks, supporting 30+ text and code formats including HTML, JS, and Python. Use it when handing local code or text files to the agent without copy-paste. It runs entirely in the browser with no server dependency. Note: each file must be 5MB or smaller, and a single upload is capped at 10 files.
dsh-paperclip 是 DSH Web GUI 的回形针按钮插件,在输入框右侧添加 📎 按钮,点击或拖拽即可将文件内容以代码块形式插入输入框,支持 HTML、JS、Python 等 30+ 文本/代码格式。适用于需要把本地代码或文本直接发给 agent 处理的场景,零服务端依赖,纯浏览器端实现。需注意单文件 ≤5MB、单次最多 10 个。
请帮我了解并安装插件:【dsh-paperclip】【https://github.com/zmm863-commits/dsh-paperclip】
Send this message to DSH in your current session. CLI install commands may not be accurate across systems — DSH will figure it out for you.把上面这条消息直接发给当前会话里的 DSH,让它帮你了解并安装。安装命令不一定准确,发给 DSH 更稳。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add dsh-paperclip
把 zmm863-commits/dsh-paperclip 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-paperclip
DSH Web GUI 回形针按钮插件:在输入框右侧添加一个 📎 按钮,点击选择文件(支持拖拽),文件内容自动插入到输入框,方便把代码/文本直接发给 agent。
A single 📎 paperclip button in the DSH web GUI composer: click to pick files (or drag & drop), file contents are inserted into the textarea so you can hand code/text to the agent directly.
功能 Features
- 📎 输入框右侧回形针按钮,一键选择文件
- 🖱️ 支持拖拽文件到输入框
- 📄 支持常见文本/代码格式(HTML、JS、TS、CSS、JSON、MD、Python 等 30+ 扩展名)
- 🔤 多文件批量上传(最多 10 个,单个 ≤ 5MB)
- 🌐 中英文双语(zh / en)
- 🧩 零服务端依赖,纯浏览器端实现
安装 Install
dsh plugin --profile web add dsh-paperclip
或者手动安装(本仓库):
dsh plugin --profile web add ./dsh-paperclip
使用 Usage
- 刷新 Web GUI 页面
- 点击输入框右侧的 📎 按钮选择文件,或直接把文件拖进输入框
- 文件内容会以代码块格式插入输入框:
📄 index.html (1.2 KB)
```html
<!DOCTYPE html>
...
4. 发送消息,agent 即可读取文件内容
## 开发 Development
```bash
npm install
npm run build # 构建 lib/(tsdown)
npm run watch # 监听模式
反馈 / Feedback
有问题、建议或想新增文件格式?欢迎提 issue:
- 🐛 Bug 反馈:描述问题 + 复现步骤
- 💡 功能建议:告诉我们你想加什么功能或格式支持
- 💬 一般讨论:任何关于回形针插件的反馈都欢迎
👉 提交 Issue
📧 联系邮箱:25894126@qq.com
许可证 License
MIT
anywhere-labs/dsh-desktop
ccch1mneyyy/dsh-TUI
shaobeichen/dsh-pocket
whitelonng/dshcode
myYangyunfan/dsh_desktop
lencx/Minke
Nagi-ovo/dsh-ads