Skip to content

[PowerRename] variable pattern notation for parent folder #8484

@akulmehta

Description

@akulmehta

📝 Description

Similar to File Creation Date Replace Notation, have a variable pattern notation $PF (Parent Folder) which can be used in the Replace with: field to add the parent folder name to the output renamed files.

Example

Current directory

└─ 0
   └─ file1.png
└─ 1
   └─ file1.png
└─ 2
   └─ file1.png
   └─ file2.png

Perform a regex search like : (.*).png, which captures the filename into variable $1

Replace with: $PF_$1.png

Expected output:

└─ 0
   └─ 0_file1.png
└─ 1
   └─ 1_file1.png
└─ 2
   └─ 2_file1.png
   └─ 2_file2.png

If you'd like to see this feature implemented, add a 👍 reaction to this post.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Idea-EnhancementNew feature or request on an existing productProduct-PowerRenameRefers to the PowerRename PowerToy

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions