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

New+ - can we input a variable when creating folders? #35287

Open
alansharkey opened this issue Oct 7, 2024 · 5 comments
Open

New+ - can we input a variable when creating folders? #35287

alansharkey opened this issue Oct 7, 2024 · 5 comments
Labels
Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams

Comments

@alansharkey
Copy link

Description of the new feature / enhancement

Rather than just duplicating the folder names in the templates area, can New+ be enhanced to allow a variable name to be added at the beginning or end of each folder? So for example, if I have a folder called "Project", it would allow me to enter a variable name called "Holiday in Turkey" and the resultant folder would be "Holiday in Turkey Project". This variable should also propogate to any sub folders underneath "Project". e.g. "Project has sub folders called JPG, RAW and Finished, each of them would have the variable appended or prepended to them to make them unique.

Scenario when this would be used?

I would otherwise end up with a lot of folders with the same name and would need to edit them to make them unique.

Supporting information

See above.

@alansharkey alansharkey added the Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams label Oct 7, 2024
@xM0DI
Copy link

xM0DI commented Oct 7, 2024

+1
I am not sure if current New+ can do this, though It would be a great feature to have.
I have my own small bat file to do same thing, doing it from New+ would be amazing!

@pbargiona
Copy link

Maybe things like this, can be implemented through autorunning a macro aptly named inside the folder.

Also, some auto-integers could be added, like a sortable date. So if I have a "yyyymmdd - Project" folder, it could become "20241007 - Turkish Project"

@alansharkey
Copy link
Author

I like that idea too.

At least we've given the developers something to think about.

@pbargiona
Copy link

Also, some auto-integers could be added, like a sortable date. So if I have a "yyyymmdd - Project" folder, it could become "20241007 - Turkish Project"

I think this feature is partly implemented already by PowerRename after 0.73 (see #3814 for reference), where such system works with a Regex form-factor.

Maybe it is simple enough to port/abstract from?

@cgaarden
Copy link
Contributor

Thank you for the feedback and idea! Currently working on this. This might never ship but hope to have this included after New+ Windows 10 support potentially lands in an upcoming PowerToys release.

Working on adding support for:

  1. Date and time component variables, such as $YYYY, $YY, $MM, $DD, - using the same logic as in PowerRename
  2. $PARENT_FOLDER_NAME - will replace with the name of the parent folder
  3. %environment-variable% support - will replace with the value of the corresponding environment variable

Example:
Template filename:
$YYYY-$MM-%DD, $hh - $PARENT_FOLDER_NAME by %USERNAME%

Filename would become:
2024-11-22, 12 - PowerShell project by cgaarden

If you have further ideas/feedback, please share!

Thank you again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams
Projects
None yet
Development

No branches or pull requests

4 participants