-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Drag and Drop support to IFS Browser #1726
Conversation
@sebjulliand Whoa! Can't wait to test this one!! 😍 |
@sebjulliand Awesome - I've been wanting this for so long! 😍 I gave it a spin, and it works as expected - of course! 😉 Some thoughts from my side:
As always, don't give me anything, I just want more! 🤣 I translated the new texts into Danish - and added checking for protected directories, including changing and translating the message text. Pardon my French! 😉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - see comment above...
Thanks @chrjorgensen, goods questions!
The drag and drop API doesn't allow this. I tried to find a way to mimic this but didn't find any.
I don't have that confirmation. Could it be a settings too? If I drag and drop files around in the file explorer, it does it right away.
I failed to find a way to do this as well, and god knows I tried 😅 If it's possible, I didn't find how yet (maybe with a specific mime type?). I'll try harder... |
Okay, just a wish that may come true later.. 😃
You have probably checked this one to not be disturbed! 😆
Ah, sorry - only had one file selected when I checked for this. 👍
Well, this is not a show-stopper, just a nice-to-have... 😃 |
@sebjulliand Did you know you can drag a file into an open editor? Then it copies the link into the text: Not a problem, though... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sebjulliand I did some further testing on the PR and observed this:
When I select some files and move them to another folder. the next item below is selected:
Also, it's possible to drag a folder into itself, which should not be possible, instead ignored...
e0b2986
to
ef13bd4
Compare
Signed-off-by: Seb Julliand <sebjulliand@gmail.com> Enable drag and drop in IFS browser - Drop from an external source - Drag and drop inside the browser itself Signed-off-by: Seb Julliand <sjulliand@arcadsoftware.com> Signed-off-by: Seb Julliand <sebjulliand@gmail.com>
Signed-off-by: Seb Julliand <sjulliand@arcadsoftware.com>
Signed-off-by: Seb Julliand <sjulliand@arcadsoftware.com>
Signed-off-by: Seb Julliand <sjulliand@arcadsoftware.com>
Signed-off-by: Seb Julliand <sebjulliand@gmail.com>
Signed-off-by: Seb Julliand <sebjulliand@gmail.com>
Signed-off-by: Seb Julliand <sebjulliand@gmail.com>
ef13bd4
to
e399eef
Compare
Signed-off-by: Seb Julliand <sebjulliand@gmail.com>
Thanks @chrjorgensen for your review! Here is what's been done, based on your feedback:
|
Signed-off-by: Seb Julliand <sebjulliand@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sebjulliand It's looking very good indeed - no issues found, and your fixes for my latest remarks works great! 🌹
Can't wait to get this into C4i - really like how easy it is now to move/copy files and open them in the editor! 😍
@sebjulliand (Rebase and) merge when you're ready! 🥇 |
You're the best @chrjorgensen, thank you for your review! |
@sebjulliand I am not grave digging here, but I did have a question. Not asking you to do them, but are these possible? I want to work on them:
|
@worksofliam sure, both are possible, to some extent.
That's where
No problem here; the Line 205 in a2ba223
Then you do whatever you want with the items you receive. |
Changes
This PR enables drag and drop support in the IFS browser and multiple selection (using
ctrl + click
orshift + click
)Drag and drop from outside VSCode inside the IFS Browser
Dragging files/folders from an external explorer to the IFS browser will upload these files/folders. If the users drop their selection on a folder, that folder will be the target for the upload. If they drop on a file, the file's parent folder will be the target.
Drag and drop inside the IFS Browser
Dragging one or more items from the IFS browser and dropping them in it will copy or move them depending on a new setting:
Multi-selection actions
Most of the actions from the right-click menu in the IFS browser will be disabled, save for the
Delete object
action that now allows for deleting multiple items at once.@chrjorgensen : I'll once again require your expertise for translating a few new sentences (+ one that was slightly changed).
Resolves #1725 by adding a progress when uploading files.
Checklist