commit a60a9dc46f1d90c7105585745b7d892f31553700 from: joshua stein date: Mon May 13 21:22:45 2019 UTC tog: implement ctrl+f/b for diff view, sync man page commit - c3e9aa982c53be0d0445b0f6a3b6d7e8c69d54b9 commit + a60a9dc46f1d90c7105585745b7d892f31553700 blob - 52e4bd531e8caf28434311b0e1f393a12dd34e1f blob + 551ab14d5e7b33fdcaa3f596077876b13285f8a5 --- tog/tog.1 +++ tog/tog.1 @@ -90,12 +90,16 @@ are as follows: Move the selection cursor down. .It Cm Up-arrow, k, Page-up, <, Comma, Ctrl-b 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, Space Open a .Cm diff view showing file changes made in the currently selected commit. .It Cm t -Open a +Open a .Cm tree view showing the tree for the currently selected commit. .It Cm Backspace @@ -130,10 +134,14 @@ The key bindings for .Cm tog diff are as follows: .Bl -tag -width Ds -.It Cm Down-arrow, j, Page-down, Space +.It Cm Down-arrow, j Scroll down. .It Cm Up-arrow, k, Page-up Scroll up. +.It Cm Page-down, Space, Ctrl+f +Scroll down one page. +.It Cm Page-up, Ctrl+b +Scroll up one page. .It Cm [ Reduce the amount of diff context lines. .It Cm ] blob - f4576eab2bb36a37be6488852d70c1e26bc4d3cd blob + a3ca55222c14ce740197763f349434d81c148e38 --- tog/tog.c +++ tog/tog.c @@ -2340,6 +2340,7 @@ input_diff_view(struct tog_view **new_view, struct tog s->first_displayed_line--; break; case KEY_PPAGE: + case CTRL('b'): if (s->first_displayed_line == 1) break; i = 0; @@ -2353,6 +2354,7 @@ input_diff_view(struct tog_view **new_view, struct tog s->first_displayed_line++; break; case KEY_NPAGE: + case CTRL('f'): case ' ': if (s->eof) break;