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

Feature Request: Variable for parent directory #29099

Closed
RobertMtx opened this issue Oct 8, 2023 · 2 comments
Closed

Feature Request: Variable for parent directory #29099

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

Comments

@RobertMtx
Copy link

Description of the new feature / enhancement

Please implement the ability to recall the parent directory folder name as a string. Something like $PDIR1.

So for a file like this:
C:\Data\Images\Amanda\001.jpg

This input:
search = ^
replace = $PDIR1_

We would get this result:
Amanda_001.jpg

You could also implement $PDIR2 (Images), $PDIR3 (Data), etc, but $PDIR1 would be especially useful.

Scenario when this would be used?

There are already many situations where this would be useful. Many sets of files are generically named inside of a specifically named folder. This would take advantage of that. But beyond that, users could take it even further by very quickly applying custom names to parent directories with the intent of allowing the contained files to inherit those names, using such a feature.

Supporting information

Since it is very common to name parent directories based on their contents, this feature would be extremely useful. Especially in situations with huge directories of files, with many folders, each containing generically named (numbered) files. Without such a feature, it takes a great deal of manual effort to rename them.

@RobertMtx RobertMtx added the Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams label Oct 8, 2023
@RobertMtx RobertMtx changed the title Variable for parent directory Feature Request: Variable for parent directory Oct 8, 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