CodeEdit
CodeEdit copied to clipboard
✨ Drag and Drop "keep both files" prompt
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
Describe alternatives you've considered
n/a
Additional context
Prerequisites:
- https://github.com/CodeEditApp/CodeEdit/issues/1018
- https://github.com/CodeEditApp/CodeEdit/pull/1031
What if there are multiple files we are “keeping both” for? We might look to Finder and follow it’s behavior.
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
I don’t know of a feature like that, no.
Yeah, I’d just append “copy” as Finder does. The user can rename manually afterwards.
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