commit - 3ef807eedd4fec23cf457ea7cd55bc01407d57b9
commit + 80b7e8dae89b7912b88913f686ea0a23bd763a8d
blob - 9ffaae36730332eea4010cd1a92aca8e2ad8117a
blob + 5221b4add67bbde2639bed5f044e0c1a96247bb1
--- tog/tog.1
+++ tog/tog.1
Move the selection cursor down.
.It Cm Up-arrow, k, <, Comma, Ctrl-p
Move the selection cursor up.
-.It Cm Page-down, Ctrl+f
+.It Cm Page-down, Ctrl+f, d, Ctrl+d
Move the selection cursor down one page.
-.It Cm Page-up, Ctrl+b
+.It Cm Page-up, Ctrl+b, u, Ctrl+u
Move the selection cursor up one page.
.It Cm Home, g
Move the cursor to the newest commit.
Scroll down.
.It Cm Up-arrow, k, Ctrl-p
Scroll up.
-.It Cm Page-down, Space, Ctrl+f
+.It Cm Page-down, Space, Ctrl+f, d, Ctrl+d
Scroll down one page.
-.It Cm Page-up, Ctrl+b
+.It Cm Page-up, Ctrl+b, u, Ctrl+u
Scroll up one page.
.It Cm Home, g
Scroll to the top of the view.
Move the selection cursor down.
.It Cm Up-arrow, k, Ctrl-p
Move the selection cursor up.
-.It Cm Page-down, Space, Ctrl+f
+.It Cm Page-down, Space, Ctrl+f, d, Ctrl+d
Move the selection cursor down one page.
-.It Cm Page-up, Ctrl+b
+.It Cm Page-up, Ctrl+b, u, Ctrl+u
Move the selection cursor up one page.
.It Cm Home, g
Move the selection cursor to the first line of the file.
Move the selection cursor down.
.It Cm Up-arrow, k, Ctrl-p
Move the selection cursor up.
-.It Cm Page-down, Ctrl+f
+.It Cm Page-down, Ctrl+f, d, Ctrl+d
Move the selection cursor down one page.
-.It Cm Page-up, Ctrl+b
+.It Cm Page-up, Ctrl+b, u, Ctrl+u
Move the selection cursor up one page.
.It Cm Home, g
Move the selection cursor to the first entry.
Move the selection cursor down.
.It Cm Up-arrow, k, Ctrl-p
Move the selection cursor up.
-.It Cm Page-down, Ctrl+f
+.It Cm Page-down, Ctrl+f, d, Ctrl+d
Move the selection cursor down one page.
-.It Cm Page-up, Ctrl+b
+.It Cm Page-up, Ctrl+b, u, Ctrl+u
Move the selection cursor up one page.
.It Cm Home, g
Move the selection cursor to the first reference.
blob - b4efe82ad2000b743da8b7312623bf0fe3708969
blob + b3235c1f84cfc50b5da206044fcd982f6191eb6c
--- tog/tog.c
+++ tog/tog.c
break;
case KEY_PPAGE:
case CTRL('b'):
+ case CTRL('u'):
+ case 'u':
if (s->first_displayed_entry == NULL)
break;
if (TAILQ_FIRST(&s->commits.head) == s->first_displayed_entry)
break;
}
case KEY_NPAGE:
- case CTRL('f'): {
+ case CTRL('f'):
+ case CTRL('d'):
+ case 'd': {
struct commit_queue_entry *first;
first = s->first_displayed_entry;
if (first == NULL)
break;
case KEY_PPAGE:
case CTRL('b'):
+ case CTRL('u'):
+ case 'u':
if (s->first_displayed_line == 1)
break;
i = 0;
case KEY_NPAGE:
case CTRL('f'):
case ' ':
+ case CTRL('d'):
+ case 'd':
if (s->eof)
break;
i = 0;
break;
case KEY_PPAGE:
case CTRL('b'):
+ case CTRL('u'):
+ case 'u':
if (s->first_displayed_line == 1) {
s->selected_line = 1;
break;
case KEY_NPAGE:
case CTRL('f'):
case ' ':
+ case CTRL('d'):
+ case 'd':
if (s->last_displayed_line >= s->blame.nlines &&
s->selected_line >= MIN(s->blame.nlines,
view->nlines - 2)) {
break;
case KEY_PPAGE:
case CTRL('b'):
+ case CTRL('u'):
+ case 'u':
if (s->tree == s->root) {
if (got_object_tree_get_first_entry(s->tree) ==
s->first_displayed_entry)
break;
case KEY_NPAGE:
case CTRL('f'):
+ case CTRL('d'):
+ case 'd':
if (got_tree_entry_get_next(s->tree, s->last_displayed_entry)
== NULL) {
/* can't scroll any further; move cursor down */
break;
case KEY_PPAGE:
case CTRL('b'):
+ case CTRL('u'):
+ case 'u':
if (s->first_displayed_entry == TAILQ_FIRST(&s->refs))
s->selected = 0;
ref_scroll_up(s, MAX(0, view->nlines - 1));
break;
case KEY_NPAGE:
case CTRL('f'):
+ case CTRL('d'):
+ case 'd':
if (TAILQ_NEXT(s->last_displayed_entry, entry) == NULL) {
/* can't scroll any further; move cursor down */
if (s->selected < s->ndisplayed - 1)