Move directory and file in dired-collapse
Hi

In the example above: 'gitlab-api' directory & 'tlsqlite-directory' only contain one file, so that dired-collapse collapse it. But not 'mwe' because it contains more than one files.
If we perform dired-ranger-copy in 'gitlab-api' only the file that copied, so we have to move the file and dir one by one. then re-arrange the structure again ('gitlab-api/file') in the destination dir.
Can we perform copy its directory/andfile when directory collapsed (like default behavior in ordinary / non collapsed dir ) ?
Thanks.
I think it might be too aggresive to work on the whole tree. Sometimes people just want to remove the file and keep the hierarchy intact.
To be fair I almost never want to do that... so maybe we could bite the bullet and implement the agressive version by default. Deleting empty directories is not something people can't easily recover from after all.
Sure, thanks :)
I think it might be too aggresive to work on the whole tree. Sometimes people just want to remove the file and keep the hierarchy intact.
I mean, isn't this the default dired behavior ? When user doing 'ranger-copy' on parent dir, the child content and the parent should copied too, not only the content.
My current workflow is: to disable collapse-mode before doing ranger-copy.
I see you did use dired-collapse, So how do you handle this situation ? did you disable dired-collapse before copying ?
I will add the example here, I am worried of miscommunication.
foo/foofile.org <- collapsed
bar/barfile1.org barfile2.org <- uncollapsed
If we do ranger-copy in bar the whole structure including bar are copied to kill ring, then ranger-paste will paste the whole structure in destination dir. I think this also the default behaviour in vanilla dired when we do move operation.
But why when dired-collapse activated, then we do dired-copy in foo, only foofile.org is copied, not including foo. So we have to copy/move one-by-one (copy foofile, move it, copy foo, move foo), it's also apply to deletion (delete under foo point, foofile deleted, but not foo).
Hope this will make my current situation clear :)
This is a great suggestion (for move, but for delete as well); maybe it could be made a setting or C-u could be used as a switch.
This is duplicate of #93