atom / tree-view

🌳 Explore and open project files in Atom
MIT License
559 stars 365 forks source link

Copy/paste files not working with files "copied" in external applications #569

Open rondonjon opened 8 years ago

rondonjon commented 8 years ago

I am using Xubuntu 14.04. When I "copy" a file in the OS file manager and switch back to atom, atom offers me to "paste" into project folders in the tree view, but this doesn't work. I choose paste, and nothing happens. I am not even getting an error message. Just as if the OS clipboard and the atom clipboard were two completely different things.

CiaranReen commented 8 years ago

This happens with me as well. Mac OS X El Capitan with Atom 1.4.3.

I just lost a load of changes due to the inverse of this as well (copying them from the tree view in atom then going to paste them in the Finder and nothing happening).

DophinL commented 8 years ago

me too

ljl commented 8 years ago

Same happens to me on Atom 1.8.0 on OS X El Capitan

lvpeng commented 8 years ago

me too

SVITY commented 8 years ago

me too

sarahessex commented 7 years ago

Me too, I have the same problem using Atom 1.16.0 on macOS Sierra 10.12.2

tomanistor commented 6 years ago

Same problem here with Atom 1.20.1 on macOS Sierra 10.12.6. Can't copy and paste images from Finder into a project folder on Atom.

TheJDexp commented 6 years ago

I hope this can be fixed! Would really help workflow... Same issue:

Atom 1.23.2 x64 MacOS High Sierra 10.13.2

*Applies to all files from Finder Clipboard as far as I can tell.

However Drag n Drop from Finder works perfectly fine, so for now I duplicate, drag and rename.

50Wliu commented 6 years ago

It doesn't look like Chrome or Electron supports this yet.

UziTech commented 6 years ago

@50Wliu is there an issue created in electron for this?

UziTech commented 6 years ago

I found a few but they are all closed

https://github.com/electron/electron/issues/11696 https://github.com/electron/electron/issues/2853 https://github.com/electron/electron/issues/2244

50Wliu commented 6 years ago

Unfortunately I forget what I was looking at when deciding that this was blocked, but I believe there aren't any HTML or Electron APIs that recognize externally-copied files.

magicdawn commented 3 years ago

this is realy inconvenient.

I see the tree view use localStorage for internal copy paste. https://github.com/atom/tree-view/blob/v0.228.1/lib/tree-view.coffee#L710-L711

May be this or some other package can utilize system clipboard public.file-url to do this image

Souleste commented 2 years ago

I made a plugin that enables native-like Clipboard operations tree-view-clipboard.

It only supports windows atm, honestly not sure what all versions will work since I don't really develop in .NET or c#.

Hope this helps someone :)