microsoft / PowerToys

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

Advanced Paste Feature Request #35744

Open amr4alex opened 2 days ago

amr4alex commented 2 days ago

/### Description of the new feature / enhancement

Hi, I suggest adding scripting capabilities to manipulate copied text and paste the processed text, user can add multiple scripts as he wants with its own title , when user triggers "Advanced paste" he can choose witch script to apply on the copied text, the script has can be python or any scripting language and structured as a one main function which accept one argument, and user can add any sub-functions according to processing logic.

Scenario when this would be used?

example: I'm usually needing to copy a text which include many hyphens and I need to paste the text without them, and this a repeated task usually I copy the text then paste it to notepad then remove the hyphens and then copy it again

input: DD-5555-22 output: DD555522

also I can create script to split the input at a certain delimiter and extract the portion I need.

Supporting information

No response

Many thanks for continues support and upgrades

drawbyperpetual commented 17 hours ago

@amr4alex This would be an interesting feature.

But do note that this is already possible with "Paste with AI" (see demo below). If this is a repeated task, you can also create a "Custom action" (see "Add custom action" on the Advanced Paste settings page) and even assign a system-wide keyboard shortcut for it.

Image