-
Notifications
You must be signed in to change notification settings - Fork 361
Conversation
so it turns out the bug is a result of the directory moving before the files within move. for initialPath in initialPaths.split(',')
@moveEntry(initialPath, newDirectoryPath) is called on each of the entries to move, and so if a dir this can be fixed by iterating backward over the paths ( |
i just found a bug with dragging files and folders at the same time, i'll likely need to rewrite logic for dragging folders. |
added a fix for the above comment, would appreciate someone else reviewing the code |
I'm a bit interested in this so I can do some testing sometime next week earliest. If I can figure out how, last time I tried with another PR tree view failed to activate. But can't do a code review as I don't have any understanding of anything. |
@Ben3eeE are you in the atom slack team? if you send me a direct message there i can help out |
@anderoonies Thanks for the help getting it up and running. I have had time to test it out and found a few things.
I don't like that the folder collapses when it gets dragged, it feels unnatural and I don't think other programs do this? Maybe it is just opinion based. As a side note: The move command (Press m while tree view has focus) still moves a single file, I found #619 for this. I think merging one without the other should be avoided if possible. |
thanks for taking a look at this—I'll rebase which should fix the first issue. collapsing was in an effort to simplify the drag image in a way which does not work, so I'll make a fix to drag image stuff overall. should have updates to this in a day or so |
here are some gifs showing the fixes in the latest commit, @Ben3eeE — solves all that you brought up afaik |
@anderoonies looking good. I can give it another round of testing later, let me know when it's ready. |
Nope I am still unable to ctrl click to deselect selected items, it does work without this PR. All other things are i mentioned are fixed. I am not sure about the drag image. Looking at how other programs work (on Windows) I don't see them listing every file. For example visual studio just shows a small square(Atom has this too) with an icon added to indicate if you copy or move based on modifiers held down. The file explorer shows the file count with the file icon and text indicating if you move, copy or make a shortcut based on modifiers held down. |
@Ben3eeE i think the meta-clicking is a system issue, then? it's working on darwin. i unfortunately have no way to test it on a windows machine. |
Deselecting now works with latest commit. |
When a directory and its children are being dragged, only drag the directory, not the individual children.
this test guarantees that dragging a directory d and additional files f into a new directory will move the entire directory d discreetly along with any additional files f.
re-enable a metaclick to allow an item to be selected from the multi-selection. change the behavior of drag image building so that there's no collapsing and properly deselects the drag image.
Any updates on this? |
This needs a rebase in order to tell whether the failing Travis spec is genuine or not. |
Should this be fixed now? I am only able to drag a single file into/out of a directory in the tree view. I can select multiple but only one gets moved after i drag and drop. Even using 1.19.0-beta 5 |
I rebased and fixed this branch at UziTech:multi-drag I submitted a pull request to anderoonies:multi-drag but I don't know if he is alive. Should I create a new pull request to atom:master instead? |
This pull request can be closed. I added an updated pull request at #1179 |
this is working toward #232, just one bug that needs to be worked out

it functions correctly, as can be seen: