microsoft / microsoft/PowerToys
Padding for matched group.
- Dominant language
- C
- Stars
- 139k
- Forks
- 8.6k
- PR merge metrics
- PR metrics pending
Description
### Description of the new feature / enhancement
Padding for matched group.
### Scenario when this would be used?
Suppose I have files like
- A1.MP4
- A2.MP4
- A3.MP4
- A10.MP4
- A11.MP1
I want to use (\d+), then update to S01A01.MP4,S01A02.MP4 and so on.
${1;padding=2}doesn't work here.
### Supporting information
_No response_
Contributor guide
Research direction
Start in the PowerRename utility and trace how matched groups are processed in replacement text. Reproduce the example with numeric captures and padding, then identify the relevant tests or entry point; done means a padded replacement produces S01A01, S01A02, and subsequent values as described.
Written by the indexing model from the issue text.
Assessment
- Domain
- desktop, tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100