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

Deduplicate paths that refer to the same file but have different strings #18

Merged
merged 2 commits into from
Dec 14, 2023

Conversation

mcauley-penney
Copy link
Owner

Closes #13.

mcauley-penney and others added 2 commits December 13, 2023 20:31
The user may avoid path deduplication by passing absolute paths to
mmv. For example, if the user gives a path to a relative file and an
absolute path to the same file, both will appear in the editing buffer,
allowing for them to conduct dangerous naming operations.

This commit initializes deduplication for this edge case. If the user
gives the "resolve paths" option, they will receive absolute paths
back. If they do not, they will receive the paths the entered as is,
but with duplicates removed. This allows for a mix of relative and
absolute paths.
Add a new GIF displaying extended deduplication and an explanation of the GIF.
@mcauley-penney mcauley-penney merged commit 05f73a7 into main Dec 14, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Destinations can avoid deduplication and cycle-handling by using alternative paths with same meaning
1 participant