Prism-File-Explorer icon indicating copy to clipboard operation
Prism-File-Explorer copied to clipboard

[Enhancement] Better check for Paste target destination

Open sud0xenn opened this issue 4 months ago • 3 comments

In reference to https://github.com/Raival-e/Prism-File-Explorer/issues/185#issuecomment-3213910043:

This is supposed to handle https://github.com/Raival-e/Prism-File-Explorer/issues/166#issue-3335008798 and https://github.com/Raival-e/Prism-File-Explorer/issues/178#issuecomment-3213126849

At paste, first lazy compare filename.

  • If different, no issue paste.
  • If same, compare checksums.
  • If checksums same, offer to delete identical file.
  • If checksums different, offer to rename the file in order to complete the paste. Rename format should be classic appending (1)...

Also allow to copy/cut and paste in same directory with auto increament in filename. Currently it shows a Toast saying Task failed

sud0xenn avatar Aug 22 '25 20:08 sud0xenn

In reference to https://github.com/Raival-e/Prism-File-Explorer/issues/185#issuecomment-3213910043:

This is supposed to handle https://github.com/Raival-e/Prism-File-Explorer/issues/166#issue-3335008798 and https://github.com/Raival-e/Prism-File-Explorer/issues/178#issuecomment-3213126849

At paste, first lazy compare filename.

  • If different, no issue paste.
  • If same, compare checksums.
  • If checksums same, offer to delete identical file.
  • If checksums different, offer to rename the file in order to complete the paste. Rename format should be classic appending (1)...

Also allow to copy/cut and paste in same directory with auto increament in filename. Currently it shows a Toast saying Task failed

I think that when copying files within the same directory, the system should prompt the user to name the copy file (with "(1)" pre-filled in the dialog's text field), rather than automatically appending "(1)".

XiaoluoFoxington avatar Aug 23 '25 04:08 XiaoluoFoxington

the system should prompt the user to name the copy file (with "(1)" pre-filled in the dialog's text field)

What if you copied tens of files? would you want to manually rename every single one? The file managers that I've tested all have auto increment rather than manual rename.

Raival-e avatar Aug 23 '25 08:08 Raival-e

the system should prompt the user to name the copy file (with "(1)" pre-filled in the dialog's text field)

What if you copied tens of files? would you want to manually rename every single one? The file managers that I've tested all have auto increment rather than manual rename.

How about this: prompt for a single file, but auto-increment for multiple files? 🤔

XiaoluoFoxington avatar Aug 23 '25 10:08 XiaoluoFoxington