helloSystem / Filer

A file manager that can also render the desktop
GNU General Public License v2.0
31 stars 9 forks source link

Drag and drop to save file on the standard save file dialog #48

Open velissarious opened 3 years ago

velissarious commented 3 years ago

In of the GUI of RISC OS when saving a file you can drag and drop the file before it has been created to the desired output directory using the mouse.

Look at this video of this feature: https://youtu.be/oL4w3AK6Qpw?t=750

Some screenshots from the video: The save dialog: image Dragging the file to the output directory: image Dropping it has placed it and saved in the desired directory. image

probonopd commented 3 years ago

Great pointer to RISC OS who set the standard when it comes to drag-and-drop in many ways.

We want it to work the other way around though, because this is our rough guideline: Drag a file from Filer into the Save dialog to save the file under the name of the existing file, thus overwriting it.

But this is currently broken because the drag-and-drop operation results in a file:/// URI rather than a path.

kettle-7 commented 3 years ago

I just take the first seven characters off.

probonopd commented 3 years ago

No, there must be a proper way to do this. Something like FmPathList* srcPaths = pathListFromQUrls(data->urls());.