The Wayback Machine - https://web.archive.org/web/20240824133955/https://github.com/atom/tree-view/pull/604
Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Implement dragging and dropping from OS file explorer #604

Merged
merged 3 commits into from
Jan 15, 2016
Merged

Implement dragging and dropping from OS file explorer #604

merged 3 commits into from
Jan 15, 2016

Conversation

Tyriar
Copy link
Contributor

@Tyriar Tyriar commented Oct 16, 2015

Fixes #570

@Tyriar
Copy link
Contributor Author

Tyriar commented Oct 16, 2015

Under Ubuntu 15.04

recording

@chuckhendo
Copy link

I was getting the same error on OS X El Capitan, and this PR fixes it

@Zireael07
Copy link

Has this been looked at at all?

@joshaber
Copy link
Contributor

@Zireael07 Thanks for the nudge! It hasn't been reviewed yet but I'll try to get to it this week.

@@ -832,11 +832,15 @@ class TreeView extends View
entry = e.currentTarget
return unless entry instanceof DirectoryView

initialPath = e.originalEvent.dataTransfer.getData("initialPath")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems preferable to keep this, rather than looking it up twice below.

@joshaber
Copy link
Contributor

Just one comment. Otherwise this looks good 👍

@Tyriar
Copy link
Contributor Author

Tyriar commented Jan 14, 2016

@joshaber Good to go pending CI

@joshaber
Copy link
Contributor

Seems to work as advertised. Thanks @Tyriar!

joshaber added a commit that referenced this pull request Jan 15, 2016
Implement dragging and dropping from OS file explorer
@joshaber joshaber merged commit f046c65 into atom:master Jan 15, 2016
@Stefanbracke
Copy link

macos 10.12: Error while dropping file from an external volume.

EXDEV: cross-device link not permitted, rename '/Volumes/SomeFatHarddisk/spot1/banner_large.png' -> '/Users/dude/Documents/myproject/www/img/banner_large.png'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
6 participants