-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Resolve #1029: Support files and folders to be dragged in externally … #1040
Resolve #1029: Support files and folders to be dragged in externally … #1040
Conversation
…externally into project navigator * Support holding option while dropping to copy
0283300
to
d98b4fd
Compare
Does the option + drop also works from Finder to CodeEdit? In the video I only saw it happening within CodeEdit. |
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.
I'm getting the following error for some folders:
*** Canceling drag because exception 'NSInternalInconsistencyException' (reason 'readFromFileWrapper:ofType:error: must be overridden by class CodeFileDocument for your application to handle file packages.') was raised during a dragging session
Do you have any more information such as crash stack? |
Yes, it works. But as mentioned here, I need to try to show + when dragging with option clicked. |
@RayZhao1998 From your video, I am not sure when you are holding ⌥. When holding ⌥, the cursor should change to the copy cursor as shown below to indicate the file will be copied. (Also see this for reference). Edit: I see from your comment above that you are aware of this. |
When dragging from external sources, I notice that the file animates back to it's source on drop (even though the source disappears). This is not expected behavior, even when copying. Try dragging between two Finder windows to see for yourself. |
It wasn't crashing entirely just throwing this error (wasn't even cancelling the drag), I can't reproduce it anymore either which is weird. Actually though, the documentation says this should have a default implementation and it doesn't even look like we're using the |
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.
Looks great, see previous comments. After that we can merge.
Updated. default.mov |
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.
Thanks for making those changes, nice work!
Description
Resolve #1029
Related Issue
Checklist
Screenshots
2023-02-05.22.45.08.mov