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

Power Rename - Option - Enumerate Items - Duplicates Only #12328

Open
PythonesqueSpam opened this issue Jul 11, 2021 · 0 comments
Open

Power Rename - Option - Enumerate Items - Duplicates Only #12328

PythonesqueSpam opened this issue Jul 11, 2021 · 0 comments
Assignees
Labels
Idea-Enhancement New feature or request on an existing product Product-PowerRename Refers to the PowerRename PowerToy

Comments

@PythonesqueSpam
Copy link

Description of the new feature / enhancement

Add a sub-options to the Enumerate Items option:

Duplicates Only - If item names end up being duplicated by the renaming process, the Enumeration will be applied only to the duplicated items in the renaming sequence and reset back to 1 at the start of each sequence of duplicated names. For example - foo.txt, foo.txt, foo.txt, foobar.txt, foobar.txt, foobar.txt - becomes foo(1) .txt, foo(2).txt, foo(3).txt, foobar(1).txt, foobar(2).txt, foobar(3).txt

Scenario when this would be used?

Duplicates Only - would be used where the Actor wants only resulting duplicate file names to be enumerated to differentiating between them, without having to number every file being renamed. Resetting the number count to one at the start of each sequence of duplicated names will have the added benefit of avoiding the enumeration reaching a high number count where large numbers of files are renamed.

Supporting information

As part of a task of maintaining 30,000 or so photographic images that over time have been renamed in various ways, I wanted to standardise the naming of them to reflect the initials of the person who owns each photograph and it's creation date and time. I wanted each name to be unique, but during the preview of renaming the files with I noted there where many duplicated names because the $YYYY$MM$DD$hh$mm$ss$fff sequence had a zero $fff component (000). I wanted to use enumeration but this meant all files would be enumerated which was unnecessary, when all I really needed was unique file names, as opposed to a large list of sequentially numbered items.

@PythonesqueSpam PythonesqueSpam added the Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams label Jul 11, 2021
@dedavis6797 dedavis6797 added Product-PowerRename Refers to the PowerRename PowerToy Idea-Enhancement New feature or request on an existing product and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Jul 28, 2021
@dedavis6797 dedavis6797 added this to the Suggested Enhancements milestone Jul 28, 2021
@yuyoyuppe yuyoyuppe self-assigned this Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Idea-Enhancement New feature or request on an existing product Product-PowerRename Refers to the PowerRename PowerToy
Projects
None yet
Development

No branches or pull requests

3 participants