===============================
WordStar like Cocoa keybindings
===============================

1. If you don't have "/Users/you/Library/KeyBindings" folder, just create it;

2. Put "DefaultKeyBinding.dict" in "/Users/you/Library/KeyBindings/";

3. Key bindings below should be available in any newly launched decent *Cocoa* applications. (I do hate Carbon just because it's not Cocoa ;-)

Instead of the steps 1 and 2, you can just put "KeyBindings" folder in this archive in your "/Users/you/Library/".

"DefaultKeyBinding.dict" is just a text file you can modify as you like.

The easiest way to customize Cocoa keybindings would be to use KeyBindingsEditor.app [url]http://www.cocoabits.com/KeyBindingsEditor/[/url].

See [url]http://www.cocoabits.com/KeyBindingsEditor/Manual/index.html[/url] for the on-line manual.

See [url]http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSResponder_Class/Reference/Reference.html#//apple_ref/occ/cl/NSResponder[/url] to know what functions you can call via your DefaultKeyBinding.dict.


===

ctrl-d: move to right
ctrl-s: move to left
ctrl-e: move up
ctrl-x: move down

ctrl-f: move to word right
ctrl-a: move to word left

ctrl-shift-d: select a character right
ctrl-shift-s: select a character left
ctrl-shift-e: select a character up
ctrl-shift-x: select a character down

ctrl-shift-f: select a word right
ctrl-shift-a: select a word left

ctrl-i: insert tab
ctrl-m: insert newline

ctrl-g: delete forward
ctrl-h: delete backward
ctrl-k: delete to the end of paragraph
ctrl-t: delete a word forward
ctrl-r: delete a word backward
