Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[FEATURE] Proper drag-n-drop from file manager to windows explorer

Aperta
#3 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
electron, typescript
Ambito
desktop

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

feature platform-desktop platform-windows
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_FILEDESCRIPTOR and data streams via CFSTR_FILECONTENTS (IStream).
    • You implement IDataObjectAsyncCapability so 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.
  • 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 the explorer.exe process.
    • 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.
  • 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

Lingua principale
TypeScript
Stelle
1
Fork
3
Merge medio
1g 4h
PR unite (30g)
6

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Termix-SSH/Plugin-File-Manager

Tutte le issue di Termix-SSH/Plugin-File-Manager

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.