Allow dropping images and files to paste into the standalone app
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- rust, tauri, typescript
- Domain
- desktop
Research direction
Start by checking the status of upstream Tauri issue tauri-apps/tauri#14373 and reviewing the existing stubs in standalone/src-tauri/tauri.conf.json, standalone/src-tauri/src/lib.rs, and standalone/src/tauri-adapter.ts. Trace the onFilesDropped plumbing through lib/src/lib/platform/types.ts and lib/src/components/wall/use-session-persistence.ts; done means standalone native file/image drops paste paths without breaking HTML5 pane reordering.
Written by the indexing model from the issue text.
Description
Background
Dragging and dropping on a terminal pane has two use cases:
- Drop a file or image to paste its path into the terminal.
- Drag a pane tab to rearrange the pane layout.
In the VS Code extension only (2) works — file/image drop into a webview is blocked by VS Code itself, which is a platform limitation we can't change.
In the standalone Tauri app we previously had only (1): file/image drop pasted paths, but pane drag did not work. This was because Tauri 2's dragDropEnabled: true (the default) captures OS drag-drop natively, and on Windows that blocks all HTML5 drag events — including internal Dockview pane reorder. See tauri-apps/tauri#8581 and tauri-apps/tauri#14373.
We've now set dragDropEnabled: false, which restores pane drag (case 2). The cost is that case (1) is currently broken in standalone too: Chromium's webview doesn't expose File.path, so a vanilla HTML5 drop can't recover the path string without OS-level cooperation.
What we want
Re-enable file/image drop-to-paste in the standalone without re-breaking pane drag.
Blocker
Depends on upstream Tauri offering a way to receive file paths from native OS drops while still letting HTML5 drag events flow to the webview. Tracked upstream at tauri-apps/tauri#14373. Once that lands (or a usable plugin/escape hatch appears) we can flip dragDropEnabled back on (or adopt the new API) and re-activate the stubs.
Stubs left in the codebase
Wiring is intentionally left in place so re-enabling is a small change:
standalone/src-tauri/tauri.conf.json—dragDropEnabled: falseis the kill switch.standalone/src-tauri/src/lib.rs— theWindowEvent::DragDrophandler that emitsmouseterm://files-dropped.standalone/src/tauri-adapter.ts— themouseterm://files-droppedlistener andonFilesDroppedplumbing.lib/src/lib/platform/types.ts— the optionalonFilesDroppedinterface method.lib/src/components/wall/use-session-persistence.ts— theplatform.onFilesDropped?.(…)subscription that callspasteFilePaths.
Note on VS Code
Doesn't apply to the VS Code extension — file drop into VS Code webviews is outside our control.
- Dominant language
- TypeScript
- Stars
- 5
- Forks
- 1
- Avg merge
- 17h 45m
- Merged PRs (30d)
- 235
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from diffplug/dormouse
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
security-audit-failure
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
All issues in diffplug/dormouse
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
bug v2
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
modelcontextprotocol/inspector#2458 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
railmapgen/rmp-gallery#4068 ·
-
Mend: dependency security vulnerability status: needs triage 🕵️♀️
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
carbon-design-system/ibm-products#9907 ·