Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PowerRename] Regex variables for parent directories #29080

Closed
cow1337killer3 opened this issue Oct 7, 2023 · 2 comments
Closed

[PowerRename] Regex variables for parent directories #29080

cow1337killer3 opened this issue Oct 7, 2023 · 2 comments
Labels
Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@cow1337killer3
Copy link

Description of the new feature / enhancement

Let us retrieve and use the names of parent directories when renaming with PowerRename.

Current item: 'C:\Users\Bob\Downloads\Cool Band\New album\Track 1.mp3'
$p expands to 'Track 1.mp3' (with extension)
$p0 expands to '.mp3' (only extension)
$p1 expands to 'Track 1' (without extension)
$p2 expands to 'New album'
$p3 expands to 'Cool Band'

And it completely avoids the problem of them attempting to include path separators in the new name.

So, renaming from
'.*'
to
'$p3 - $p1 ($p2).$p0'
would give
'Cool Band - Track 1 (New album).mp3'

Scenario when this would be used?

In many cases, files are meaningfully organized by their directory structure, and the parent directories can contain valuable information relating to the file that would be extremely useful when renaming the file. A notable example is music libraries where people often organize their audio files with important metadata information (artist/album/genre) being inferred from the directory structure.

Supporting information

No response

@cow1337killer3 cow1337killer3 added the Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams label Oct 7, 2023
@TheJoeFin
Copy link
Collaborator

/dup #8484

@microsoft-github-policy-service
Copy link
Contributor

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@microsoft-github-policy-service microsoft-github-policy-service bot added Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

2 participants