microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
109.21k stars 6.44k forks source link

PowerRename counter does not increment for the next row when it finds a file which already has the correct counter value, causing duplicate file names #33884

Open kitbs opened 1 month ago

kitbs commented 1 month ago

Microsoft PowerToys version

0.82.0

Installation method

PowerToys auto-update

Running as admin

Yes

Area(s) with issue?

PowerRename

Steps to reproduce

I have a set of files that needs to remain in a specific order, but new files will occasionally be inserted between two existing files. I have used a 010, 020, 030 prefix so the numbering is sparse enough to insert the new file as e.g. 025, 028 etc. without needing to manually renumber all the files after it. (The way we used to do with BASIC line numbers. 👴)

Occasionally, I have wanted to renumber all the files so they go back to neat increments of 10, so I reached for PowerRename.

I have found that when PowerRename finds a file in the sequence that already has the correct counter value (so does not need to be renamed), it does not increment the counter, which means the next file becomes a duplicate number.

image

✔️ Expected Behavior

Given the following input files:

The output should be:

❌ Actual Behavior

The output is instead:

Other Software

No response

github-actions[bot] commented 1 month ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.