PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

Transform (lowercase, Titlecase, UPPERCASE) Feature

Open alfureu opened this issue 4 years ago • 14 comments

Summary of the new feature/enhancement

As there is a PowerRenamer feature, there should be a PowerTransform feature as well. PowerTransform should help quickly rename any text throughout the W10 ecosystem, and especially files, from lowercase to Titlecase or UPPERCASE.

It should be available as a Right click context menu. This is an absolutely missing feature in any Windows OS, and the third party solutions are not great.

Please leave a like if you would want to have this feature implemented.

alfureu avatar Dec 10 '19 08:12 alfureu

Just a clarification: I am not sure this should be a part of a separate window within PowerRename. I believe this should be available on the Right-click context menu, from where the various options (e.g. lowercase, Titlecase, UPPERCASE) should be selectable right away. Moreover, any editable text should be transformable within Windows 10 like this.

For inspiration check out what is possible in macOS:

image

alfureu avatar Dec 14 '19 10:12 alfureu

I found you looking for a solution as well. I guess I will have to buckle down and write a Python utility to crawl my music directory to fix ALL CAPS, all lower and other non-title formats.

I already did so to fix all the CD rippers that prepended every title with the track-number. The header already has a place for track number, and the prepended track number makes it impossible to search for duplicated songs.

My routine only does one directory at a time, so I will have to fix that for double duty. ;)

Python: str.title() will fix it right up.

RonPi avatar Apr 30 '20 20:04 RonPi

Hi @RonPi, at the end I found an old free software called ReCase: https://bluefive.pairsite.com/recase.htm. Your solution might be the way to go, I am happy to test your python utilities if you are willing to share :-)

alfureu avatar May 01 '20 08:05 alfureu

I already have most of the work done for a previous project. All I have to do is str.title() each one. That capitalizes each word in the title.

From: DOFfactory [email protected] Sent: Friday, May 1, 2020 1:13 AM To: microsoft/PowerToys [email protected] Cc: RonPi [email protected]; Mention [email protected] Subject: Re: [microsoft/PowerToys] Transform (lowercase, Titlecase, UPPERCASE) Feature (#907)

Hi @RonPi https://github.com/RonPi , at the end I found an old free software called ReCase: https://bluefive.pairsite.com/recase.htm. Your solution might be the way to go, I am happy to test your python utilities if you are willing to share :-)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/microsoft/PowerToys/issues/907#issuecomment-622294354 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ABMMQ4JQDMYD6YQKPQWSFM3RPJ77JANCNFSM4JY24A5A . https://github.com/notifications/beacon/ABMMQ4JWSLJZ44GBIN6KI6DRPJ77JA5CNFSM4JY24A5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEULXKUQ.gif

RonPi avatar May 01 '20 23:05 RonPi

If I understand you correctly then you do not have right-click menu extension then, but you run a python script on the folder then. Am I correct?

alfureu avatar May 02 '20 18:05 alfureu

I have a music drive, and I put the root of it’s directory (or whatever part of it I wish to deal with, and a routine I purloined and added to my program builds an array of the full paths to all the files. My program renames all of them in place.

I just found out at least MP3 files in all upper case I can’t even rename with PowerShell manually! I also can’t change the case in windows. IF it renamed it to a different name THEN to Title Case it works. In PowerShell, it appears to work, but LS shows it is still all UPPERCASE. In Windows it appears to work ‘til I hit return! I have been using Windows since I abandoned 3.0 as it was really bad and a task switcher worked better. 3.1 was the 1st reasonable replacement. (I guess NEVER buy the 1st release!)

Anyway, my program renames each file to IndexT where n is the index number of the file in the array of music filenames. THEN renames it to what I wanted. (using os.rename()) not just in memory, but actually renaming file so windows can see it. I no longer let Windows Media Player to bugger my music files (due to them deciding every file needs the track number prepended. (The track is already in the metadata!)

Like this.

“OLD NAME.mp3” -> IntexT101.mp3-> “New Name.mp3”

I had already done this to get rid of the track numbers, to make it EZer to fine duplicates. I have purchased a lot of Best Of albums in the past, and the like to sell the same songs on as many albums as they can get away with. Out of 6,888 tracks, I am betting I have 20% of duplicates. (Same file size and play length.)

From: DOFfactory [email protected] Sent: Saturday, May 2, 2020 11:12 AM To: microsoft/PowerToys [email protected] Cc: RonPi [email protected]; Mention [email protected] Subject: Re: [microsoft/PowerToys] Transform (lowercase, Titlecase, UPPERCASE) Feature (#907)

If I understand you correctly then you do not have right-click menu extension then, but you run a python script on the folder then. Am I correct?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/microsoft/PowerToys/issues/907#issuecomment-622993202 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ABMMQ4OXWP5YSISML7GJHXLRPRO5RANCNFSM4JY24A5A . https://github.com/notifications/beacon/ABMMQ4K6NDLCGJMY3JGX27DRPRO5RA5CNFSM4JY24A5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEURB6MQ.gif

RonPi avatar May 04 '20 07:05 RonPi

Thanks for the explanation. Well, then this ticket is still valid as it would be great to have this available from the context menu applicable to any text selected.

alfureu avatar May 06 '20 09:05 alfureu

This is possibly a duplicate of #687. What do you think @enricogior ?

muratakburak avatar May 21 '20 11:05 muratakburak

@muratakburak Not necessarily. The idea behind this is to be able to change the case of any selected text within the system that is editable, i.e. not only filenames.

alfureu avatar May 21 '20 11:05 alfureu

@DOFfactory Oops, Thanks for the clarification.

muratakburak avatar May 21 '20 11:05 muratakburak

Changed the label to better categorize the issue.

enricogior avatar May 21 '20 12:05 enricogior

Yes I agree this is a much needed feature. I use this for now: https://geekdrop.com/content/super-handy-autohotkey-ahk-script-to-change-the-case-of-text-in-line-or-wrap-text-in-quotes

technobulb avatar Sep 23 '22 17:09 technobulb

In general, having some sort of Text Tools powertoy could be really useful. Like PowerToys Run it could have a bunch of smaller features that can be turned on/off and customized. Another example of a Text Tool would be #21231

unrealed avatar Oct 12 '22 23:10 unrealed

I was about to suggest the same thing, I wish if some of the Dev make us an Alternative to SnipDo that is based on PowerToys and that support add-ons or scripts that everyone can toggle, download to fit their requirements, such things are tremendous time saver and amazing productivity addition to almost every user, it would be great if it works in similar fashion to SnipDo but more robust and versatile... I can make a list of tools and contribute to the scripts later ( I wish if I have the skills and knowledge to make it myself but unfortunately I don't )

Right now PowerToys add some new features but they are slowly implanted since but with some scripting support that allows interaction with content and UI then it could be easy for many to make all sort of tiny tools that exists already but requires the installation of several freewares or visiting many websites (and having bookmark list well maintained)...

I cannot stress enough how this can be time saver, even to transform a text to a hashtag it shouldn't take more than selecting the text and having a bubble to do that by replacing spaces or eliminating them (matter of taste) and adding the # at the begging of the sentence...

Notepad++ can offer a lot of inspiration of how many tiny tools, script that can be created, but since they can be a lot then having the ability to organize them in a menu with representative icons (in same Windows 11 design) would be great.

Imagine a bubble who dynamically change if you select a text then it will show several icons to transform the text organized in groups and categories (that end users can specify themselves) ... if it is a URL then another menu would show up...

SnipDo is great in term of what it does, but it is paid, closed source and maintained by only one person so it wouldn't be many productive people would install on their workstation.

neoOpus avatar Mar 03 '23 12:03 neoOpus

Suggested setting in the Punto Switcher app that I am forced to use for lack of better alternatives:

Punto Switcher Settings

A similar setting in the Notepad++:

Notepad++ case shortcuts

Korb avatar May 14 '23 16:05 Korb

I've made a program called QuixCase that allows you easily switch between Sentence Case, UPPERCASE, lowercase, Capital Each Word, and even tOGGLE cASE. explorer_v6I7ETpxbB

iandiv avatar Oct 24 '23 13:10 iandiv