cosmic-files icon indicating copy to clipboard operation
cosmic-files copied to clipboard

[Bug] Pasting multiple files with identical names in one go is broken

Open Kartonrealista opened this issue 1 year ago • 3 comments

Cosmic-files version:

0.1.0~1727571724~22.04~ad03ea7

Issue/Bug description:

~Currently when pasting files with identical names the dialogues appear one after another, without letting you to decide what to do with all of them in one go. Additionally, the cancel button works similar to how a "Skip" button should work (which is missing), when it should abort the whole pasting operation. This should be changed and "... All" versions of the buttons should be introduced in addition to existing ones.~ image

Errata: It seems this feature is implemented, but doesn't work correctly. When copying a folder with multiple files sharing the same name, it works:

image But if you copy files not nested in a folder, it breaks, and creates the dialogue box seen on the first picture for each file.

Steps to reproduce:

Paste multiple files not nested in a folder. The expected dialogue box doesn't appear.

Expected behavior: The dialogue on the second picture should always appear if you're copying multiple files with identical names. Other notes: N/a

Kartonrealista avatar Sep 29 '24 05:09 Kartonrealista

Only one dialog needs to be spawned to make cancel work. This would be a huge problem if there are hundreds of duplicate files and you don't want either replace or keep both

iamkartiknayak avatar Sep 29 '24 11:09 iamkartiknayak

Only one dialog needs to be spawned to make cancel work. This would be a huge problem if there are hundreds of duplicate files and you don't want either replace or keep both

Sorry, I have no idea what you're trying to say.

On another note, apparently this is already a feature, where sometimes a checkbox appears with "Apply to all", but it didn't appear to me when I pasted files not nested in a folder. When the files are nested in the folder, and you copy the whole folder, you get the checkbox, but if they are pasted directly, this doesn't happen, and you have to click a button for every file. I'll change the title and description.

Kartonrealista avatar Sep 29 '24 12:09 Kartonrealista

It is also missing a "Keep both" option on the second screenshot.

Kartonrealista avatar Sep 29 '24 12:09 Kartonrealista