EmEditor (text editor) Forum Index
   EmEditor Core Enhancement Suggestions
     Add "Toggle-case" to "Uppercase", "Lowercase" and "Capitalize" commands
Register To Post

Flat Previous Topic | Next Topic
Poster Thread
mguttman
Posted on: 8/6/2010 8:52 am
Just can't stay away
Joined: 11/14/2009
From: Ashdod, Israel
Posts: 76
Add "Toggle-case" to "Uppercase", "Lowercase" and "Capitalize" commands
Currently the three case-modifying menu commands are three different and distinct commands, albeit grouped under Edit -> Convert selection sub-menu.

My proposal is to have a fourth one, "Toggle Case", working as follows:

* Like the other, existing three it will be available only when some text is selected.

* When invoked, it will cycle through these three commands in the order "Lowercase" -> "Uppercase" -> "Capitalize" and back to "Lowercase".

* It will start in this cycle from the closest to these three states. The obvious next when all characters are lowercase is "Uppercase", then "Capitalize" and then "Lowercase" again, and so on. The rule could be simple: when the majority of the characters are capitals, the next state is "Capitalize"; when the majority are lowercase, the next state is "Uppercase". (In the special case of a word like "mIXUP" the next state might be "Capitalize", as this was obviously a "Caps-lock" unintentionally left active.)

* The default keyboard shortcut might be ALT-C (for "case")

Microsoft's "WORD" is using this kind of cycling the word (and even a complete sentence) case, although there the shortcut key is the SHIFT-F3. It is very handy and it is easier to use since it involves just a single command and key.

Regards,
Meir

P.S.: Can that be implemented by a macro???
(Sorry, I never tried one... )
Flat Previous Topic | Next Topic


Subject Poster Date
 » Add "Toggle-case" to "Uppercase", "Lowercase" and "Capitalize" commands mguttman 8/6/2010 8:52 am
     Re: Add "Toggle-case" to "Uppercase", "Lowercase" and "Capitalize" commands Yutaka 8/6/2010 10:27 am

Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文