Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail when renaming file leads to overwrite #348

Open
GregPK opened this issue Aug 28, 2024 · 0 comments
Open

Fail when renaming file leads to overwrite #348

GregPK opened this issue Aug 28, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@GregPK
Copy link

GregPK commented Aug 28, 2024

The part you want to Enhancement
If I have two files foo and bar in the same directory, renaming foo to bar should not be allowed. Should either prevent this with a message, or ask for confirmation.

Why it is necessary to enhancement
While I assume that spf uses mv and this is not a bug, I did not expect it to silently overwrite files when renaming. This expectation if probably due to other UI file browsers actually prevent this:

  • pcmanfm - error
  • ranger - error
  • nnn - confirmation

Additional context
II lost two files because the same name was harder to spot than the example above (lots of files + name were timestamps). Had backups.

@GregPK GregPK added the enhancement New feature or request label Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Feature
Development

No branches or pull requests

1 participant