/* Page up */
{ KEY_PPAGE, SEL_PGUP },
{ CONTROL('U'), SEL_PGUP },
+ /* Home */
+ { KEY_HOME, SEL_HOME },
+ { CONTROL('A'), SEL_HOME },
+ { '^', SEL_HOME },
+ /* End */
+ { KEY_END, SEL_END },
+ { CONTROL('E'), SEL_END },
+ { '$', SEL_END },
/* Change dir */
{ 'c', SEL_CD },
/* Toggle sort by time */
Scroll up half a page.
.It Ic [Pgdown] or C-d
Scroll down half a page.
+.It Ic [Home] or C-a or ^
+Move to the first entry.
+.It Ic [End] or C-e or $
+Move to the last entry.
.It Ic l, [Right], [Return] or C-m
Open file or enter directory.
.It Ic h, [Left] or [Backspace]
SEL_PREV,
SEL_PGDN,
SEL_PGUP,
+ SEL_HOME,
+ SEL_END,
SEL_CD,
SEL_MTIME,
SEL_REDRAW,
if (cur > 0)
cur -= MIN((LINES - 4) / 2, cur);
break;
+ case SEL_HOME:
+ cur = 0;
+ break;
+ case SEL_END:
+ cur = n - 1;
+ break;
case SEL_CD:
/* Read target dir */
printprompt("chdir: ");