fork-dev / TrackerWin

Bug and issue tracker for Fork for Windows
459 stars 10 forks source link

Drag&Drop files from Fork into external apps (e.g. Visual Studio...) #2075

Open bytefactory73 opened 9 months ago

bytefactory73 commented 9 months ago

Unfortunately the d&d of files and folders is not using the OS functions. so it's not possible to drag a file into MSVC or any other editor. I wish that would be possible (Other tools allow that).

Thx.

Danielku15 commented 7 months ago

I'd also like to see that. Dragging a list of files into Notepad++ / VSCode or any other editor can help a lot quickly adjusting some edited files before commiting.

As Fork for Windows uses WPF it should be easy to add the feature. If the DataObject on the drag&drop is filled with a file drop list this should already work:

https://learn.microsoft.com/en-us/dotnet/api/system.windows.dataobject.setfiledroplist?view=windowsdesktop-8.0#system-windows-dataobject-setfiledroplist(system-collections-specialized-stringcollection) https://learn.microsoft.com/en-us/dotnet/desktop/wpf/advanced/drag-and-drop-overview?view=netframeworkdesktop-4.8