I spend a very large amount of time editing text in Xcode, and I would like maneuvering around text within the rest of the Cocoa Text System to offer an identical experience. There are 3 versions of cursor keyboard shortcuts that I use regularly in Xcode (only showing forward, non-selection-altering versions for brevity):
- ⌃→ Move cursor 1 subword forward (^camelCase -> camel^Case -> camelCase^)
- ⌥→ Move cursor 1 word forward
- ⌘→ Move cursor to the end of the line
The OS X default keybindings respect 2 and 3, but there is a disparity with 1. Outside of Xcode, ⌃→ behaves like ⌘→. It's not applicable terribly often, but every time ⌃→ takes me to the end of a line in Mail or something, it's like a little firecracker goes off in my brain. It's just annoying enought that I'm willing to invest in any hackery to "fix" the behavior once and for all.
To avoid covering old ground, I'm already aware of this little tidbit, and this list of selectors, but I'm not aware of any API in the Cocoa Text System for subword selection. Maybe there's undocumented API in there somewhere?
I don't always attempt to make camelCase selections outside of Xcode with keyboard shortcuts, but when I do I want OS X to obey.