3

I am trying to create a few system level key bindings. I know about ~/Library/KeyBindings/DefaultKeyBinding.dict but I am not sure what to put in there/or how to go about finding the commands and codes.

I would like keybindings to

  • Opt <- //Move cursor back a word
  • Opt -> //Move cursor forward a word
  • Opt Cmd <- //Home
  • Opt Cmd -> //End
  • (the same commands, but adding Shift to select instead of just move

Is there a good resource to help me figure this out?

6

@LauriRanta has a wonderful resource on DefaultKeyBinding.dict including an example file as well as all the shortcut strings and methods you need, available at:

There are also numerous other resources listed at the bottom of the page, including the official Apple Developer documentation:

1

I found an application (KeyBindingsEdit) that is a nice UI for building it. If you are just looking for a good way to edit it, it could be helpful

  • The url seems to be broken (domain for sale). – dewtea Jan 25 at 20:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .