I would like to be able to use Command arrow keys to navigate by word like you can with Option. I've disabled the Mission Control mappings already. What's the easiest way to remap?
1 Answer
You can change the default keybindings for OS X text editing with the DefaultKeyBinding.dict file. Make a new text file at ~/Library/KeyBindings/DefaultKeyBinding.dict
, with these contents:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>^</key>
<string>moveWordLeft:</string>
<key>^</key>
<string>moveWordRight:</string>
</dict>
</plist>
Restart or log out and in, and controlleft and controlright should do what you're looking for. This will work in most OS X apps, but there are some (typically third party text editors) that use their own bindings, which will need to be switched on a case-by-case basis.
-
-
I don't think so. Per Apple's Developer guide to Key Bindings,
^
is the proper character for the control modifier, and the NSEvents docs, left and right are unicodeF702
andF703
. Commented Nov 29, 2012 at 15:45 -
Oh, my mistake, just did a little more testing and I forgot to account for unicode encodings. Answer updated accordingly. Commented Nov 29, 2012 at 16:03