FluentTerminal icon indicating copy to clipboard operation
FluentTerminal copied to clipboard

Can't drag and drop files to insert a path

Open hanskokx opened this issue 6 years ago • 7 comments

I was trying to run a program, using a filename as an argument. I tried to drag/drop the file into the window to insert the path+filename. This didn't do anything.

hanskokx avatar Oct 22 '18 20:10 hanskokx

I looked at this a while ago. Problem is that the UWP WebView is not acting like a real control for drop events, and when handling it in JavaScript I only received the filename, but not a complete path. Maybe adding the broadFileSystemAccess capability changes this, but I haven't tried it.

felixse avatar Oct 22 '18 20:10 felixse

It would also have to understand whether or not you're using WSL or some windows command line to insert the proper path.

Hans Kokx On October 22, 2018 4:33:44 PM Felix [email protected] wrote:

I looked at this a while ago. Problem is that the UWP WebView is not acting like a real control for drop events, and when handling it in JavaScript I only received the filename, but not a complete path. Maybe adding the broadFileSystemAccess capability changes this, but I haven't tried it. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

hanskokx avatar Oct 22 '18 20:10 hanskokx

@felixse I have an idea, adding a transparent control above WebView to receive drop events and changing its Visibility according to Window.Current.Activated.

RikkaW avatar Jan 12 '19 13:01 RikkaW

@RikkaW interesting idea, I will definetively try this 👍

felixse avatar Jan 14 '19 20:01 felixse

I would be really happy about this addition, as I use it constantly on Linux. Would it be possible to have a copy/paste feature [as well/at least]?

solarkraft avatar Jul 04 '19 14:07 solarkraft

so when will you do it.

F-Unction avatar Dec 05 '20 01:12 F-Unction

Big up for this!

smark91 avatar Apr 05 '21 14:04 smark91