Allow dropping images and files to paste into the standalone app
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- rust, tauri, typescript
- Lĩnh vực
- desktop
Hướng nghiên cứu
Bắt đầu bằng cách kiểm tra trạng thái issue Tauri upstream tauri-apps/tauri#14373 và xem xét các stub hiện có trong standalone/src-tauri/tauri.conf.json, standalone/src-tauri/src/lib.rs và standalone/src/tauri-adapter.ts. Truy vết plumbing của onFilesDropped qua lib/src/lib/platform/types.ts và lib/src/components/wall/use-session-persistence.ts; được coi là hoàn tất khi thao tác thả tệp/hình ảnh native trong standalone dán các đường dẫn mà không làm hỏng việc sắp xếp lại pane HTML5.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 5
- Fork
- 1
- Merge trung bình
- 12 giờ 46 phút
- Pull request đã merge (30 ngày)
- 322
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của diffplug/dormouse
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
diffplug/dormouse#912 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 42/100
diffplug/dormouse#910 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
security-audit-failure
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
diffplug/dormouse#908 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
review-runs-tracking: 2026-10Đang mởreview-runs-tracking
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 10/100
diffplug/dormouse#881 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 38/100
diffplug/dormouse#845 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của diffplug/dormouse
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
📕documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
db-ux-design-system/core-web#8343 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement triage/needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
heygen-com/hyperframes#4944 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Pressing Escape to close the time dropdown in the event form asks to discard the whole eventĐang mởai-driven-qa bug claude
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
linagora/twake-calendar-frontend#1493 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
material-extensions/vscode-material-icon-theme#3610 ·
Maintainer thường phản hồi trong vòng 2 ngày