PgUP and PgDN on a Macbook
The one thing that really annoys me about my Macbook is that it's missing the Home, End, Page Up and Page Down buttons. The latter ones I especially miss when interacting with particular console applications (less
, for example). Is there any way to assign them to keys I don't actually use, like the buttons up top bring up Dashboard (I have that disabled) and such?
Solution 1:
On a MacBook:
-
Home
isCmd
+ ↑ /Fn
+ ← -
End
isCmd
+ ↓ /Fn
+ → -
PageUp
isFn
+ ↑ -
PageDown
isFn
+ ↓
Solution 2:
Indeed, the missing keys on Macbooks (and many Windows notebooks) are something extremely annoying.
Normally, on Macbook keyboards, you get
Home / End with fn-Left / fn-Right
and
PgUp / PgDown with fn-Up / fn-Down
However, as you noticed, this doesn't work in Terminal apps like nano, Midnight Commander, less, etc.
In Terminal, you need to add Shift to let them "pass through" to Terminal.
Home : Shift-fn-Left
End : Shift-fn-Right
PgUp : Shift-fn-Up
PgDn : Shift-fn-Down
Of course, when what you really need happens to be Shift-Ctrl-Home ... forget it! (Or connect a real keyboard)
And Midnight Commander users will want to know that the missing Insert key can obtained with Ctrl-T
Solution 3:
You can use PgUp and PgDwn with 'Fn'+'Up' and 'Fn'+Down'.
Solution 4:
In text editors such as TextEdit or Pages:
- Page Up (reposition cursor) is Fn⌥↑
- Page Down (reposition cursor) is Fn⌥↓ or ⌃V
Solution 5:
In less (in similar terminal apps paginating content) you can use:
space: page forward
backspace: page backward
or
control + f: page forward
control + b: page backward