PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

Add automatic rename mode when creating a new file type in New+

Open voidconsole opened this issue 1 year ago • 2 comments

Description of the new feature / enhancement

In New+, When a new file type is created from the template, it should automatically enter "rename mode" to allow users to immediately rename the file from its default template name. This feature is similar to the Windows built-in behavior and would streamline workflows by eliminating unnecessary steps, such as navigating to the file and manually triggering rename.

Scenario when this would be used?

This feature would be particularly helpful when users create multiple files in quick succession. Often, new files are named generically (e.g., "New File (1)"), with respect to the template name, and users must manually rename them later. By entering rename mode automatically, users can:

  • Avoid creating duplicate, undescriptive filenames.
  • Save time by renaming files immediately upon creation.

This is especially beneficial for power users managing large projects with frequent file additions.

Supporting information

No response

voidconsole avatar Dec 18 '24 16:12 voidconsole

In the above requirements, I have a usage scenario: I need create a folder every month, which contains two Excel files named first half of the month and second half of the month, and the content is daily sales statistics (the files are template files). I hope to use New+ to create this folder named the current month, and the content is the sales statistics template.

Marerc avatar Dec 19 '24 01:12 Marerc

Thank you for reporting this!

@voidconsole

  1. Re the Enter rename as in regular New -- that should be working in 0.87 on both Windows 10 and Windows 11. On the Desktop and also creating from New+ in a regular folder. Do you already have 0.87 installed (likely based on the date you do, just checking :) If you have 0.87 would you share a bit more information on how I might be able to recreate the issue here?

@Marerc 2) Re variable usage in names including day, month, year similar to PowerRename - really like that idea, and it might be included in a future release. In fact, I'm working on it right now :-)

cgaarden avatar Dec 21 '24 18:12 cgaarden

Could a variable be added to the list of options which automatically pulls the current clipboard value? $CLIPBOARD This would be really quick rather than renaming.

Could a variable be added that prompts the user for a string value at runtime? Maybe something like: ${CustomUniqueValue}

You could have these prompts strewn through the name values. At runtime, it shows a form with all of your labels.

So if my folders, sub-folders, and files have these in their names:

${Input Your Describing Label For Whatever Goes Here}
${CategoryName}

I would get a form prompt that lists:

  1. Input Your Describing Label For Whatever Goes Here = ______________________________________
  2. CategoryName = ______________________________________

Whatever you type in the prompt would find/replace all instances of the same variable.

In my experiences, having a single string be "found and replaced" in the New+ Template Folder name would be far less fidgety and streamlined than having to manually make the changes as "normal" for the file name. This would make it more repeatable.

Truncated avatar Oct 04 '25 20:10 Truncated