Bug 371206 - Feature Request: Capitalize Selected Text
Summary: Feature Request: Capitalize Selected Text
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.8   Edit
Hardware: All All
: P5 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2012-02-10 06:39 EST by Ted Cohen CLA
Modified: 2012-02-10 10:19 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ted Cohen CLA 2012-02-10 06:39:34 EST
There are three parts to this feature request, all involve changing the case of selected text in the same manner that  "upper case" and "lower case" do. Each of the three commands work only on selected text. Unless there is a strong objection, I would say that if any part of a word is selected, treat the word as if it was all selected. If there are objections, I don't mind if you either operate only on selected text or if you ignore words that are only partially selected. As long as it is consistant, I can live with any of the three options.

The first command is "proper case" which is pretty easy to do in English but may be more difficult in other languages. The first character of most words is made upper case, all other characters are made lower case. The exception to the first chatacter upper case are articals such as a/in/of/the.

The second command is "capitalize". Although much less important than "proper case", it is much easier to code. With this command, the first letter of every word is capitalized and the subsequent characters are made lower case no matter what the word is.

The third command is "invert case". If a character is lower case, make it upper, if it is upper, make it lower. For this command, I would say to only operate on the exact selection, rather than extending it to include full words. This command is the least important of the three, but I actually have used it and it is trivial to code.