I would like to take more advantage of being able to define shortcuts in the Mac DefaultKeyBinding.dict. However I cannot find a comprehensible list of what I can remap. Right now I am searching for every bit of functionality I want to find and hope that someone already posted an answer for that. I have just found that adding

  "@\UF702" = moveWordLeft:;
  "@\UF703" = moveWordRight:;
  "@$\UF702" = moveWordLeftAndModifySelection:;
  "@$\UF703" = moveWordRightAndModifySelection:;

enables me to use ⌘← and ⌘→ to move by word but I would like to extend this to ⌘⌫← and ⌘⌫→ to delete forward and backward until the end of word.

I was trying to find a Apple's Cocoa documentation to get the full list of methods, but so far this is the best I could find: http://www.hcs.harvard.edu/~jrus/site/cocoa-text.html

Any recommendations?

  • The only limitation would be the number of permutations of having modifiers and keys, but as far as what you can shortcut, you’re only limited by your imagination. Start with the Emacs keybindings because that’s what it’s based off of – Allan Apr 29 '20 at 14:52
  • @Allan I think the OP is looking for a list of potential methods they can bind keys to (e.g. moveWordLeft etc) – nohillside Apr 29 '20 at 17:03
  • @nohillside the keybindings ate Lisp functions and that’s just one of them. You can create your own function like moveWordLeftDoALittleDance – Allan Apr 29 '20 at 17:09

It seems that you can trigger any methods you want for the active view of the application you are running. This is the most comprehensive list of methods I have found. It is the oldest snapshot of osxnotes.net, now down, on the wayback machine (so they may have updated it before it was taken down). See the links in the "Methods" section for even more information than the link itself provides.

You must log in to answer this question.

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