I'd like to change the default text navigation buttons for OSX (Mountain Lion).
That is, currently the key to move iterate tokens when editing a text file (or in XCode) is alt, and command for BOL/EOL.
I want to edit the default keys such that command is used to iterate through tokens, and either (alt+command+direction) or (fn+direction) is used for BOL/EOL.
I couldn't seem to find it in the key settings of each program, so I suppose it is some sort of default setting of the OS. Where and how can I change to achieve the above behaviour?
Thanks in advance,
Dan
Best Answer
You can create custom key bindings that will apply in most OS X text editors (specifically, those that use the Cocoa framework).
Check out KeyBindingsEditor, which provides a front end to the key bindings system.
Alternatively, you can create a
DefaultKeyBinding.dict
plist file in~/Library/KeyBindings/
that allows you to specify custom keybinding actions. You should read Apple's documentation for the precise actions available.In your case, you'll probably want the
moveWordForward:
andmoveWordBackward:
methods, if I'm parsing your question correctly.