Improve file move and copy operations #75330
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Right now we have 2 ways to move files and 1 way to copy files. First is drag and drop. It moves files, or copies if you hold Ctrl. The second one is "Move To" context menu option, which shows a nice folder tree, where you can select target directory and your file(s) is/are moved.
The Move To option is particularly nice, because you can easily move files between folders that are very far apart (which is not that convenient with dragging). So I though - what if the dialog had copy option? And then I also refactored both operations and added some extras.
godot.windows.editor.dev.x86_64_ETkI3cUnKW.mp4
Move To was renamed to Move/Copy To, and it becomes copy when you select a checkbox. Previously when you copied files, the new files were just renamed in case of conflict. And when you moved files, there was a confirmation dialog for overwriting. This is now unified. Both operations now ask you in case of conflict and offer "Keep Both" option that renames the file. Which means you can copy & overwrite and move & rename (to File (2) etc.).