Jump to content

FIx TWin CApitals


Recommended Posts

I am new to the forums here. I checked and did not find this request. Maybe it is out of the scope of what Alfred can do. If so, I get it.

Nevertheless, I would like Alfred to be able to fix twin capitals at the beginning of a word, no matter what application is running. Change "LIke THis" to --> "Like This". I have used a different piece of software that claims this as a feature, Text Expander, But it just does not work. I am a poor typist and want a piece of software to clean up my errors rather than improve my typing.

 

Link to comment
Share on other sites

2 hours ago, kurto said:

I have used a different piece of software that claims this as a feature, Text Expander, But it just does not work.

 

If they claim that (though I don’t remember ever seeing that touted as a feature, when I was a user) you should open a bug report with them. Maybe it’s an easy fix.

 

Either way, as you’ve probably gathered Alfred currently cannot do this for you. Not while you type, at least. You could type your text and then fire a workflow to fix all twin capitals after the fact, however.

 

You could also have this work as you type by making a specific snippet for every possible pair of twin capitals. Doable, but that’s still over one thousand of them.

Edited by vitor
Link to comment
Share on other sites

"You could also have this work as you type by making a specific snippet for every possible pair of twin capitals. Doable, but that’s still over one thousand of them."

 

Easily generated with a couple nested loops.... Now I want to try it just to see if it will break Alfred....

Link to comment
Share on other sites

THe previous reply got stuck in the quote, and I couldn't get out. 

Yes, the workflow idea could be fine. I see all the double caps and fix them anyway. I'd like to speed up the process.

As for the twin capital pairs, I only have a few that account for most of them: TH, WE, MA, and IT. I wouldn't want it to change state abbreviations, such as MA but still fix MAddie to Maddie.

 

Link to comment
Share on other sites

There you go. Quick and dirty with little testing, but should work.


Assign it a keyboard shortcut, and when you want to fix some text, select it all and press the shortcut. Text will be replaced with the fixed version. It only fixes two uppercase letters in a row that are not followed by a non-space character, which should cover your case.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...