Skip to content

LQ-1123/paste-to-workspace

30Last commit Aug 14, 2026

paste-to-workspace DSH plugin

Paste-to-Workspace captures image pastes and file drags into the DSH chat input area, saves them to the conversation workspace, and injects file references into messages. It provides a preview bar, type-specific icons, click-to-download, and automatic cleanup after 30 days.

How to install the paste-to-workspace DSH plugin

dsh plugin --profile web add "github:LQ-1123/paste-to-workspace

Copying does not run this command. Review the repository and version before installing the paste-to-workspace DSH plugin.

paste-to-workspace DSH plugin data source

paste-to-workspace DSH plugin snapshot date: Aug 16, 2026

discovered

What the paste-to-workspace DSH plugin can do

  • Drag and drop any file type from Finder, WeChat, QQ, or web pages into the chat window to save as workspace file.
  • Paste images (Cmd/Ctrl+V) from clipboard into the chat input to add to the pending list.
  • Render type-specific icons for 15+ file categories (PDF, Word, Excel, PPT, TXT, Markdown, archives, audio/video, code, fonts, ebooks, etc.) with light/dark theme support.
  • Click file cards to download directly with original filename, no preview page.
  • Send files without any text (single Enter or send button) as a single turn.
  • Split display into two bubbles: text stays in original bubble, file cards move to separate user row for better readability.
  • Auto-cleanup of pasted files older than 30 days from the workspace.

Where the paste-to-workspace DSH plugin fits

  • Quickly share screenshots or images from the clipboard with the model.
  • Drag and drop documents (PDF, Word, Excel) for the model to read and analyze.
  • Send code files (`.py`, `.js`, `.ts`, etc.) directly to the workspace for the model to understand.
  • Attach compressed archives (`.zip`) for batch file processing (drag one at a time).
  • Use the file card download feature to retrieve sent files from history.

Who the paste-to-workspace DSH plugin is for

  • DSH users who frequently share files with AI models during conversations.
  • Users who prefer a visual file management interface within the chat (preview bar, icons, download).

paste-to-workspace DSH plugin limitations

  • Paste (Cmd+V) only intercepts images; for files, use drag and drop.
  • Dragging folders is not supported; please pack them as zip first.
  • Single file size limit is approximately 24 MB (base64-encoded JSON body ~32 MB).
  • Sent files are kept for 30 days, after which download links may return 404 (expected behavior).
  • Pending files are global: switching sessions while files are pending will send them with the next message.

paste-to-workspace DSH plugin: from the repository README

Quoted from the LQ-1123/paste-to-workspace README, the upstream source of the paste-to-workspace DSH plugin. Copyright remains with the original authors.

**把粘贴或拖入聊天框的图片与任意文件保存为会话工作区文件**,发送时以 `[Image: source: <绝对路径>]` / `[File: source: <绝对路径>]` 文本注入消息—— 图片由 modlens 读图,其他文件由模型按路径直接读取。输入框保持干净,预览条 与对话气泡内直接渲染缩略图 / 文件卡片。 ## ✨ 功能一览 - **🖼️ 任意文件拖放**:从 Finder / 微信 / QQ / 网页把**任意类型文件**拖到窗口 任意位置即保存到工作区 `.dsh-paste/`,进入待发预览条(纯文本/链接拖放仍走 原生行为) - **📋 图片粘贴**:Cmd/ctrl+V 粘贴截图/图片同样进入待发列表 - **🎨 类型图标渲染**:图片显示缩略图;其他文件显示 RemixIcon line 图标 + 原始文件名 + 大小(PDF/Word/Excel/PPT/TXT/Markdown/压缩包/音视频/代码/ 字体/电子书等 15 组),未知格式用**代码图标兜底**,样式随浅/深主题 - **⬇️ 点击即下载**:点文件卡片唤起浏览器另存为(保留原始文件名),不再打开 预览页 - **🚀 纯文件发送**:只上传文件、不输入任何文字也能发送(Enter 或发送按钮 均可),一次调用 = 一个回合,文字与文件不拆消息 - **🧵 一回合双气泡**:文字留在原气泡、图片/文件卡片移到独立用户行(显示层 拆分,模型侧始终是一条消息) - **🌓 主题适配**:卡片底色/边框/文字/图标全部走宿主设计 token,深浅主题 自动切换 - **✏️ 官方提示文案改写**:拖放时宿主全页提示"图片拖动到此处即可添加"自动 改写为"文件拖动到此处即可添加",限制行替换为任意文件说明 - **🧹 30 天自动清理**:超期文件自动清扫(只动插件自己的 `pasted-*` 文件) ## 🚀 安装 **前置**:已装好 DSH(`dsh web` 可正常运行),`dsh plugin` 可用(依赖 pnpm)。 从 **GitHub 安装**(推荐,一行命令,产物已入库无需构建): ```sh dsh plugin --profile web add "github:LQ-1123/paste-to-workspace" # 验证 bundle 已挂载 dsh --profile web --dump-config | grep paste-to-workspace ``` 也可以本地路径(开发调试时)或 npm 包名安装: ```sh dsh plugin --profile web add /path/to/paste-to-workspace ``` 安装后**重启 dsh

Read the full READMERepository license: MIT

paste-to-workspace DSH plugin questions

How do I install paste-to-workspace?

Run `dsh plugin --profile web add "github:LQ-1123/paste-to-workspace"` in your terminal. Then restart `dsh web` for the plugin to take effect. Make sure you have DSH installed and `dsh plugin` command available.

What file types are supported for drag and drop?

All file types are supported. The plugin will display a type-specific icon for 15+ categories including PDF, Word, Excel, PPT, TXT, Markdown, archives, audio/video, code, fonts, ebooks, and unknown formats will use a code icon as fallback.

Is there a file size limit?

Yes, the single file size limit is approximately 24 MB. This is due to the base64 encoding of the file content sent in the JSON body, which results in a ~32 MB payload. For larger files, consider splitting or using other methods.

How long are pasted files kept?

Files are automatically cleaned up after 30 days. Only files with the naming pattern `pasted-*` in the `.dsh-paste/` folder are affected. After 30 days, download links from history may return 404, which is expected behavior.

Can I disable the plugin without uninstalling?

Yes. In your Profile patch or overlay, set `disabled: true` for the bundle: `- id: paste-to-workspace\n disabled: true`. Remove the field or set it to `false` to re-enable. No restart required for the config change, but you may need to restart the DSH web process.