[FEATURE] Proper drag-n-drop from file manager to windows explorer
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- electron, typescript
- 领域
- desktop
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- TypeScript
- 星标
- 1
- 派生
- 3
- 平均合并
- 1 天 4 小时
- 30 天内合并 PR
- 6
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Termix-SSH/Plugin-File-Manager 的其他 Issue
-
bug platform-desktop
难度 2/5 1-3 小时 新手友好度 68/100
Termix-SSH/Plugin-File-Manager#19 · 2 条评论 ·
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
Termix-SSH/Plugin-File-Manager#17 · 1 条评论 ·
-
bug platform-desktop platform-docker
难度 2/5 1-3 小时 新手友好度 65/100
Termix-SSH/Plugin-File-Manager#16 · 2 条评论 ·
-
bug platform-desktop platform-docker
难度 2/5 1-3 小时 新手友好度 66/100
Termix-SSH/Plugin-File-Manager#15 · 2 条评论 ·
-
bug platform-docker
难度 4/5 3-5 天 新手友好度 45/100
Termix-SSH/Plugin-File-Manager#18 · 1 条评论 ·
查看 Termix-SSH/Plugin-File-Manager 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
lichess-org/lila#22324 · 1 条评论 ·
维护者通常 1 天内回复
-
ep:WebGPU platform:web quantization
难度 2/5 1-3 小时 新手友好度 66/100
microsoft/onnxruntime#33752 ·
维护者通常 2 天内回复
-
[Skill Bug]: entra-agent-id: inaccurate blueprint permission inheritance and parent token sub claim未关闭bug entra-agent-id
难度 2/5 1-3 小时 新手友好度 78/100
microsoft/GitHub-Copilot-for-Azure#3467 · 1 条评论 ·
维护者通常 1 天内回复
-
fix(worker): keep normal prepare waiting states failure-free可能已有人在做 @LichKing-2234 今天认领。 未关闭agent:codex priority:P1
难度 2/5 1-3 小时 新手友好度 72/100
AgoraIO-Extensions/agent-infra#3745 ·
维护者通常 1 天内回复
-
The five-line work window can drop its oldest line: the per-line byte share ignores the JSON framing可能已有人在做 @Eapp1e 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 84/100
makecindy/cindy#7973 · 1 条评论 ·
维护者通常 1 天内回复