microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
111.04k stars 6.54k forks source link

New Module : Windows Path interactive #25732

Open nitrateag opened 1 year ago

nitrateag commented 1 year ago

Description of the new feature / enhancement

Hello

I want to create a new module with this 4 firsts features :

Scenario when this would be used?

Open a file or its parent folder from a string path

Imagine this log file :

Error : C:\fold\file name1.ext has not the right syntax
Error : //server/dir1/dir 2/random File Name.ext is missing and i don't add quote to delimit spaced path (deal with it)

* It can parse the second line too, spaced path is not a problem

We can add some variation :

Open a file or its parent folder from a windows control

We can do the same with all windows control who hook a Ctrl+C. Imagine a software who run a MessageBox who say "look at this log file : C:\a random\path\what\I'm\too\lazy\to find\log.txt". You just have to send Win+Enter, and PowerToy can get the path with Ctrl+C, parse the path and open it !

Past the file/folder path from files copied in the clipboard

Imagine you edit an .ini or .cfg file. You want to set a path to paramFile :

[ParamSection]
paramFile = //randomServer/random/path/that/i m/tired/to/get/inputFile.ext

So, to simply add the path, there is already Maj+RightClick from the explorer who offer to copy the path, and past it inside the .ini file with your favorite editor... But I want more ergonomic way : I want, when I have a file or a dir copied in my clipboard, past the path when I send Ctrl+V ! We just have to add an exception for the explorer and dialog box like "Save As" or "Open..."

Copy a file or folder inside the windows explorer if a string path are present in the clipboard

Imagine, you have build something in Visual Studio, and at the success, the compilator write in the console

Build success in "C:/path/too/long/to/your/project/and more to binary/software.exe".

Now, you want to send the exe to a friend. You just copy the message, and send Ctrl+V in your OneDrive explorer to share your .exe.

In the explorer, send Ctrl+V with some text or bitmap inside the clipboard will create a file and fill it with the clipboard content

Supporting information

Hello

I already made a proof of concept of this 4 feature with an AutoHotkey project. You can try it here : https://gitlab.com/nitrateag/windowsexplorertools

I recently discover PowerToy and I want to contribute with adding this 4 main feature who I use every day ! I'm thinking of redo this job in C#.

I hope that my contribution will interest you !

=)

htcfreek commented 1 year ago

@crutskas This sounds interesting. What do you think about including this?