[FEATURE] Proper drag-n-drop from file manager to windows explorer
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- electron, typescript
- Lĩnh vực
- desktop
Hướng nghiên cứu
Start by reading the Electron file manager’s drag-and-drop entry point and how it currently calls startDrag(); the issue does not name a file or test. Compare the proposed native addon and shell extension approaches, then determine which one fits the project before estimating implementation. Done means dragging an SFTP file into Windows Explorer transfers it directly to the chosen folder with Explorer’s native progress UI.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Title
Proper drag-n-drop from file manager to windows explorer
Platform
Desktop App - Windows
Is it related to an issue?
Dragging the file out from the file manager to windows explorer popping out the windows save as dialog. While this is acceptable, this is unconventional.
The Solution
The options is kinda limited, since the client is electron(?) app, but there is still:
Option 1: Native C++ Addon (Virtual Files / OLE Streams)
Instead of using Electron's startDrag(), you build a native Node.js C++ addon (node-addon-api) implementing Windows COM drag-and-drop interfaces (IDataObject).
- How it works:
- You provide Windows Explorer with virtual file metadata via
CFSTR_FILEDESCRIPTORand data streams viaCFSTR_FILECONTENTS(IStream). - You implement
IDataObjectAsyncCapabilityso large transfers won't freeze the Explorer UI. - When the user drops the item, Explorer creates the file and pulls chunks through
IStream::Read. Your addon fetches those chunks on-the-fly via SFTP and streams them directly to disk.
- You provide Windows Explorer with virtual file metadata via
- Pros: Clean architecture, no background hooks, Explorer shows its native copy/progress dialog.
- Cons: Requires writing custom C++ Win32/COM code.
Option 2: Shell Extension DLL (The FileZilla / WinSCP Trick)
This is the workaround traditionally used by desktop FTP/SFTP clients.
- How it works:
- You build a C++ Windows Shell Extension DLL and register it in the system registry (
regsvr32) during app installation. The DLL runs directly inside theexplorer.exeprocess. - In Electron, you drag a lightweight "dummy/placeholder" file.
- When dropped, your DLL inside Explorer intercepts the drop event, extracts the actual destination folder path (e.g.,
D:\Downloads), and sends it back to your Electron app via IPC (like a Named Pipe). - Your app then downloads the real file via SFTP straight into that target path, replacing the dummy file.
- You build a C++ Windows Shell Extension DLL and register it in the system registry (
- Pros: Proven, battle-tested approach by legacy FTP tools.
- Cons: Requires admin rights for registration, extra installer setup, and injecting a DLL into the user's Windows Shell.
Additional Context
No response
- Ngôn ngữ chính
- TypeScript
- Star
- 1
- Fork
- 3
- Merge trung bình
- 1 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 7
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
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 Termix-SSH/Plugin-File-Manager
-
bug platform-desktop platform-docker
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
Termix-SSH/Plugin-File-Manager#21 · 2 bình luận ·
-
[FEATURE] FTP supportĐang mởfeature platform-web
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Termix-SSH/Plugin-File-Manager#5 · 5 bình luận ·
Tất cả issue của Termix-SSH/Plugin-File-Manager
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
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 78/100
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 66/100
CopilotKit/openmuse#215 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
b:minor bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
software-mansion/argent#1698 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
e2e-failure ready-to-code
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
redhat-developer/rhdh-plugin-export-overlays#4624 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày