Skip to content

Commit a501df4

Browse files
Merge pull request #4581 from yuyoyuppe/PowerRenameCounterFeatureUpdate
Update PowerToys.PowerRename Enumerate Items functionality
2 parents cc324b2 + 179b5bc commit a501df4

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

hub/powertoys/powerrename.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,27 @@ Choose between four options to either convert items to be all lowercase, all upp
8787

8888
### Enumerate items
8989

90-
Appends a numeric suffix to file names that were modified in the operation. For example: `foo.jpg``foo (1).jpg`
90+
If selected, you can use the following patterns as part of the _Replace with_ text:
91+
92+
| Variable pattern | Explanation |
93+
|:-----------------|:-----------------------------------------------------------------------|
94+
| `${}` | A simple counter that will start from zero for the first renamed file. |
95+
| `${increment=X}` | A counter with a customized incrementer value. |
96+
| `${padding=X}` | A counter with a specified number of leading zeroes for the number. |
97+
| `${start=X}` | A counter with a customized initial value. |
98+
99+
You can also use multiple counters in the same replace string and combine customizations.
100+
101+
For example, given a _Search_ text `a` and a set of files:
102+
- a.jpg
103+
- ab.jpg
104+
- abc.jpg
105+
106+
A _Replace with_ text `Image_${padding=4;increment=2;start=10}_` would produce the following:
107+
- Image_0010_.jpg
108+
- Image_0012_b.jpg
109+
- Image_0014_bc.jpg
110+
91111

92112
## Replace using file creation date and time
93113

0 commit comments

Comments
 (0)