microsoft / microsoft/PowerToys

Padding for matched group.

Open
#47,013 2 comments 0 reactions 0 assignees View on GitHub
Needs-Triage Product-PowerRename
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.