microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
110.19k stars 6.49k forks source link

Windows File Explorer compatable file name fix and paste #35045

Open minedefine opened 1 week ago

minedefine commented 1 week ago

Description of the new feature / enhancement

paste with Windows File Explorer file naming compatability. (or some form of regex)

Scenario when this would be used?

naming files/folder/ in Windows File Explorer. pasting url of saved article. pasting "date-time stamps" formats. etc...

Supporting information

Since Powertoys is a Windows only app. File Explorer doesn't correct invalid characters, but instead deletes it THEN just errors out. The existing "paste as markdown" feature is a form of this feature, but it would be very helpful to have a windows file explore file naming version.

ethanfangg commented 6 days ago

How would you expect a "Paste as Compatible File Name" feature to handle invalid characters?

Also having a hard time imaging how frequently this would be used. Could you share more information? /needinfo

minedefine commented 2 days ago

There doesn't seem to be a standard default replacements for microsoft's invalid characters,, which could make deciding the default complex.

method 1. perhaps it could be a general replacement interface similar to key mapping in PowerToys/Keyboard_Manager?

name: paste "custom"?

use cases: this might expand the use cases to any paste beyond just file explorer.

other thoughts. it's not very advanced or could get clumsy with general replacement.. but since it's powertoys :). it's one of those things i think even a.i. paste would have trouble with. untill a.i. fully knows what i want and keep my settings.