Commit Diff


commit - f70ffbb53218e6d26d9ef6babd8c106b105db18b
commit + ea025d1dbc11c33fec290591f35673b896edd822
blob - dc2613f1948e568e578c8d9c6b54e1296b91ca7d
blob + 0dd65401b0dc391a3212722256b92a0e5afc702a
--- tog/tog.1
+++ tog/tog.1
@@ -211,10 +211,14 @@ The key bindings for
 .Cm tog blame
 are as follows:
 .Bl -tag -width Ds
-.It Cm Down-arrow, j, Page-down, Space
+.It Cm Down-arrow, j
 Move the selection cursor down.
-.It Cm Up-arrow, k, Page-up
+.It Cm Up-arrow, k
 Move the selection cursor up.
+.It Cm Page-down, Space, Ctrl+f
+Move the selection cursor down one page.
+.It Cm Page-up, Ctrl+b
+Move the selection cursor up one page.
 .It Cm Enter
 Open a
 .Cm diff
@@ -277,10 +281,14 @@ The key bindings for
 .Cm tog tree
 are as follows:
 .Bl -tag -width Ds
-.It Cm Down-arrow, j, Page-down
+.It Cm Down-arrow, j
 Move the selection cursor down.
-.It Cm Up-arrow, k, Page-up
+.It Cm Up-arrow, k
 Move the selection cursor up.
+.It Cm Page-down, Ctrl+f
+Move the selection cursor down one page.
+.It Cm Page-up, Ctrl+b
+Move the selection cursor up one page.
 .It Cm Enter
 Enter the currently selected directory, or switch to the
 .Cm blame
blob - 9e8009077b052e09ca9a672a6324e575c6116de3
blob + cedb43dd64ce5c18d0d3451f7b9f8d0e922264b2
--- tog/tog.c
+++ tog/tog.c
@@ -4164,6 +4164,7 @@ input_blame_view(struct tog_view **new_view, struct to
 			s->first_displayed_line--;
 		break;
 	case KEY_PPAGE:
+	case CTRL('b'):
 		if (s->first_displayed_line == 1) {
 			s->selected_line = 1;
 			break;
@@ -4319,6 +4320,7 @@ input_blame_view(struct tog_view **new_view, struct to
 		break;
 	}
 	case KEY_NPAGE:
+	case CTRL('f'):
 	case ' ':
 		if (s->last_displayed_line >= s->blame.nlines &&
 		    s->selected_line >= MIN(s->blame.nlines,
@@ -5038,6 +5040,7 @@ input_tree_view(struct tog_view **new_view, struct tog
 		    s->tree, s->tree == s->root);
 		break;
 	case KEY_PPAGE:
+	case CTRL('b'):
 		tree_scroll_up(view, &s->first_displayed_entry,
 		    MAX(0, view->nlines - 4 - s->selected), s->tree,
 		    s->tree == s->root);
@@ -5060,6 +5063,7 @@ input_tree_view(struct tog_view **new_view, struct tog
 		    s->last_displayed_entry, s->tree);
 		break;
 	case KEY_NPAGE:
+	case CTRL('f'):
 		if (got_tree_entry_get_next(s->tree, s->last_displayed_entry)
 		    == NULL) {
 			/* can't scroll any further; move cursor down */