Search code examples
textmate

Textmate: cannot find page up for macbook keyboard


Using a macbook keyboard (which means I do not have the 'page up' button) I cannot figure out what the pageUp keybinding is or how to bind ctrl+u to the pageUp action.

My first attempt was to add this to my KeyBindings.dict file:

{
    "^u"  = "pageUp:";
}

That didn't work, so I tried to define pageUp: in "settings -> keyboard -> keyboard shortcuts -> application shortcuts" and then created one for textmate using 'pageUp' and 'pageUp:' as the 'Menu Title' option (there is no menu option for textmate that I can see so I was kind of guessing here).

Basically, what is the opposite of ctrl+v? Or if it does not exist for this keyboard, how can I bind ctrl+u to page up?


Solution

  • You may have changed something with that keybindings file. fn-up arrow should page up and fn-down arrow should page down. The cursor doesn't move with these however, just the screen. I just accidentally found that Ctrl-Up and Ctrl-Down work the same way in TextMate. Playing around a bit, I also found that fn-Opt-Up and fn-Opt-Down will page up and page down while also moving the cursor.