microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
110.56k stars 6.51k forks source link

New Folder with Selection #3569

Open mc2too opened 4 years ago

mc2too commented 4 years ago

Summary of the new feature/enhancement

Provide a means to select files then put them into a new folder created at the time the operation is executed.

Proposed technical implementation details (optional)

Essentially this is a Windows Explorer implementation of the similarly named function in (Apple's) macOS Finder. Effectively this is a reverse sequence of events from what is required in Windows Explorer currently.

Select files in Explorer. Right click and select from a context menu, or click a button on the toolbar to launch the operation. A new folder is created within the current folder one is in/viewing in Windows Explorer. Once the folder is named, the selected files are moved into that folder.

@crutkas edit FROM #6405 by @zeealeid

"Hopper" — Easier way to create new folders from files located two or more locations.

Here's an idea for (potentially) a new PowerToy: Introducing Hopper:

Imagine if you want to create a new folder containing files from two different locations. The process would take some time right?

But with Hopper, just hit a keystroke, select the files and drop them in the Hopper. Select the files from the second directory and drop them in the Hopper too.

User Dragging and Dropping a File from a directory to Hopper

User Dragging and Dropping a File from another directory

Then hopper would ask you a few questions about the name of the folder and it would ask, would the files be copied from the locations or be moved from the locations.

Hopper Asking Questions

Oh hello, new folder!

And voila! Here's your new folder!

Jay-o-Way commented 4 years ago

One way to do this already is to use the Move To button in the Explorer Ribbon. There you can create a new folder and move the files. ~So, would this actually be new..?~

mc2too commented 4 years ago

Ah yes... I had forgotten about that option.
My one comment would be that the current Move To... button functionality is... messy at best. When I use that I am presented with a huge long list of folders - some of which seem to be sourced from the Quick Access menu - and others from somewhere else - so maybe they are memories of other recent Explorer window locations. Regardless, the folder I am currently in is presented at the bottom of this list (and in my case I have to scroll down to it), and you cannot actually create a new folder at one of those locations - unless of your course you go for the "Choose Location..." option (again, at the bottom of the list) - and then suddenly you're into another interface, and again - it doesn't start in the folder you are currently working in in Windows Explorer. In other words - the simplicity of selecting some files and moving them into a new folder (in your current folder) in one fell swoop is just not possible with the Move To... button.

Jay-o-Way commented 4 years ago

I didn't say it was perfect. You're right about that.

The thing you ask for is like the WinRar method, right? Similar to the compressed folder in the shell:sendto menu. Maybe it is possible to add a menu-item that creates a normal folder in the current location?

mc2too commented 4 years ago

Hi. Not sure about the WinRAR method; I've not used that app.

The shell:sendto method may be appropriate; I used to have Gabriele Ponti's Send to Toys installed in the past (still available at http://www.gabrieleponti.com/software/) and it has some very useful functionality available from the right-click send to menu. Actually, I should try it out again... though my right click menu is already very full (mostly due to workplace required apps).

Some of what is offered in Send to Toys (v2.7.2) is available in the current Windows Explorer... sort of.

Regardless, still not quite the simplicity of what is offered with the Apple finder function of selecting some files, then invoking the "new folder with selection" option. image

mc2too commented 4 years ago

didn't mean to close the comment.

Jay-o-Way commented 4 years ago

Maybe the Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Windows.newfolder key in the registry can be of some help? If somebody knows how to translate this into a (executable/batch) file of some sorts?

UPDATE I decided to make this myself and used AutoIt ("a freeware BASIC-like scripting language", www.autoitscript.com) and created an .exe file (1MB including ico file), directly in the SendTo folder*. It uses the selected files as internal command line parameters (or the other way around). Then it prompts a name, by means of an InputBox. Then it creates the folder (@WorkingDir & new name) and moves the files. Bloody thing worked at the first go!! 😁

I wouldn't mind sharing the exe file with y'all, but anti-virus programs (including MS Defender) keep - incorrectly - treating exe's that are created with AutoIt as trojans and/or other malware, and I don't wanna bother you guys with that.

mc2too commented 4 years ago

Awesome! It's been soooo long since I did any coding/scripting...

daslicht commented 4 years ago

i made a small electron app for this purpose :) but build in the os as in macOS would be much better . These are the lil tiny things why people prefer macOS over Windows, and this is just one of many

dogancelik commented 4 years ago

New folder with selection

Since nobody has mentioned it, TeraCopy 3 (free) has this feature.

PowerToys should have it too IMO.

daslicht commented 4 years ago

New folder with selection

Since nobody has mentioned it, TeraCopy 3 (free) has this feature.

PowerToys should have it too IMO.

awesome , and even this : looks very useful: https://www.codesector.com/directfolders

daslicht commented 4 years ago

One feature on windows i miss a lot (from macOS) is the ability to drag a folder or file on file open / save dialog. In Windows, ERxplorer would copy teh dragged file, under macOS it just navigates to the folder. Much fatser than copy / pase a link to navigate to a destination

Jay-o-Way commented 3 years ago

xref: #6405

im3or commented 3 years ago

I didn't know teracopy 3 had this option, i use v2.3 so. For this 'new folder with selection' i've been using a little piece of shell extension software for years since vista. Fortunately it works well with windows 10 as well. Can't live without this as i am a photographer & i create hundreds of folder a day. Here: Files 2 Folder

Jay-o-Way commented 2 years ago

PowerToys should have it too IMO.

Frigging WINDOWS should have this! 😒

UmarAhmed129 commented 2 years ago

@Jay-o-Way Can you please share the autoitscript you created to enable 'new folder with selection' feature. Would love to install it.

Jay-o-Way commented 2 years ago

@Jay-o-Way Can you please share the autoitscript you created to enable 'new folder with selection' feature. Would love to install it.

You're free to try it, but it's far, far from ideal: NewFolder.zip

UmarAhmed129 commented 2 years ago

@Jay-o-Way Thank you ... I unzipped it using 7Zip to a folder called NewFolder inside which is an New Folder.exe when I double click it, a message pops up saying No parameters/file available Exit. How do I use it?

Jay-o-Way commented 2 years ago

@Jay-o-Way Thank you ... I unzipped it using 7Zip to a folder called NewFolder inside which is an New Folder.exe when I double click it, a message pops up saying No parameters/file available Exit. How do I use it?

Place the exe inside your shell:SendTo folder. When you have selected a number of files, right-click and look for it in the "Send To" menu. The au3 file is text based, so you can see how it is built.

UmarAhmed129 commented 2 years ago

@Jay-o-Way Thank you ... I unzipped it using 7Zip to a folder called NewFolder inside which is an New Folder.exe when I double click it, a message pops up saying No parameters/file available Exit. How do I use it?

Place the exe inside your shell:SendTo folder. When you have selected a number of files, right-click and look for it in the "Send To" menu. The au3 file is text based, so you can see how it is built.

It works!!! ... Thank you so very much.

xx88xx commented 2 years ago

is this method trustworthy for using in a professional environment - moving lots of data?

gioxx commented 2 years ago

If you are talking about the original request, well, yes. Daily in a professional environment I use the "File selected to new folder" available on macOS.

If, on the other hand, you're talking about @Jay-o-Way proposed temporary solution (using AutoIt), let's say it works and I'm using it, but I certainly avoid it when it comes to moving critical stuff.

Jay-o-Way commented 1 year ago

@Aaron-Junker is this still in progress? To all: Files actually has this function implemented. Works well! image

Aaron-Junker commented 1 year ago

@Aaron-Junker is this still in progress? To all: Files actually has this function implemented. Works well! image

@Jay-o-Way Yes. Currently working with @crutkas on making a good interaction model.