Mac – All text boxes : The opposite of ctrl+v (like in emacs)

emacstext inputunix

I like using ctrl + v on mac for jumping with the cursor to the next screen – something like page down but the cursor moves too.

Do you know any way to do the opposite – jumping to the previous screen – like page up but also with the cursor moving?

I'd love a universal solution – i.e. working in all text boxes.

UPDATE: I've refreshed my mind that there's a key binding in terminals that does exactly what I want and that's meta + v but that doesn't work in all Cocoa text boxes as ctrl + v does.

Best Answer

⌥⇞ and ⌥⇟ (option-page up and option-page up) also move the caret, like ⌃V.

You can make ⌥V scroll a page up and move the caret by saving a property list like this as ~/Library/KeyBindings/DefaultKeyBinding.dict:

{
  "~v" = pageUp:;
}

It is also possible to make the page up and page down keys move the caret:

{
  "\UF72C" = pageUp:;
  "\UF72D" = pageDown:;
}

The pageUp: and pageDown: methods don't do anything in web views (including Safari) or in Numbers though.

See http://www.hcs.harvard.edu/~jrus/site/cocoa-text.html or http://lri.me/keybindings.html for more information.

You can also use KeyRemap4MacBook to remap ⌥V to ⇞, or ⇞ and ⇟ to ⌥⇞ and ⌥⇟. See this question.

Related Question