CodeEdit icon indicating copy to clipboard operation
CodeEdit copied to clipboard

✨ Drag and Drop "keep both files" prompt

Open neil-ptr opened this issue 2 years ago • 5 comments

Is your feature request related to a problem? Please describe.

When user drags and drops a file, user doesn't have option to rename dragged file in case there is a duplicate file of the same name

Describe the solution you'd like

In the alert telling the user that there exists duplicate files of the same name when dragging and dropping, add a button: keep both which will move the files and append copy to the end of the dragged files name ex: test.txt -> test copy.txt Screenshot 2023-02-01 at 1 38 55 PM

Describe alternatives you've considered

n/a

Additional context

Prerequisites:

  • https://github.com/CodeEditApp/CodeEdit/issues/1018
  • https://github.com/CodeEditApp/CodeEdit/pull/1031

neil-ptr avatar Feb 01 '23 04:02 neil-ptr

What if there are multiple files we are “keeping both” for? We might look to Finder and follow it’s behavior.

austincondiff avatar Feb 01 '23 05:02 austincondiff

Screenshot 2023-01-31 at 10 30 51 PM

Screenshot 2023-01-31 at 10 30 08 PM

Looks like when you click 'keep both' it appends copy to the end of the file name before the extension. Is there behavior that allows you to rename incoming duplicates in finder? I'm not sure how to reproduce that behavior

neil-ptr avatar Feb 01 '23 05:02 neil-ptr

I don’t know of a feature like that, no.

thecoolwinter avatar Feb 01 '23 06:02 thecoolwinter

Yeah, I’d just append “copy” as Finder does. The user can rename manually afterwards.

austincondiff avatar Feb 01 '23 06:02 austincondiff

yeah especially considering if we drag and drop multiple files, it would be cumbersome to prompt the user to input a name for each moved file

neil-ptr avatar Feb 01 '23 09:02 neil-ptr