commit - 4f18c4000896c6ade7e7bd662d05f75686d338b2
commit + 02ffd0d540e3bfc2c0aaea16dd2272d0e695e287
blob - 6782772927c2e0682e87d5728b008b4502aff17b
blob + 0e414ba8af3db6bb003ec9b35d7e1510d7c18632
--- tog/tog.1
+++ tog/tog.1
.Cm tog log
are as follows:
.Bl -tag -width Ds
-.It Cm Down-arrow, j, >, Full stop
+.It Cm Down-arrow, j, >, Full stop, Ctrl-n
Move the selection cursor down.
-.It Cm Up-arrow, k, <, Comma
+.It Cm Up-arrow, k, <, Comma, Ctrl-p
Move the selection cursor up.
.It Cm Page-down, Ctrl+f
Move the selection cursor down one page.
.It Cm a
Toggle treatment of file contents as ASCII text even if binary data was
detected.
-.It Cm Down-arrow, j
+.It Cm Down-arrow, j, Ctrl-n
Scroll down.
-.It Cm Up-arrow, k
+.It Cm Up-arrow, k, Ctrl-p
Scroll up.
.It Cm Page-down, Space, Ctrl+f
Scroll down one page.
.Cm tog blame
are as follows:
.Bl -tag -width Ds
-.It Cm Down-arrow, j
+.It Cm Down-arrow, j, Ctrl-n
Move the selection cursor down.
-.It Cm Up-arrow, k
+.It Cm Up-arrow, k, Ctrl-p
Move the selection cursor up.
.It Cm Page-down, Space, Ctrl+f
Move the selection cursor down one page.
.Cm tog tree
are as follows:
.Bl -tag -width Ds
-.It Cm Down-arrow, j
+.It Cm Down-arrow, j, Ctrl-n
Move the selection cursor down.
-.It Cm Up-arrow, k
+.It Cm Up-arrow, k, Ctrl-p
Move the selection cursor up.
.It Cm Page-down, Ctrl+f
Move the selection cursor down one page.
.Cm tog ref
are as follows:
.Bl -tag -width Ds
-.It Cm Down-arrow, j
+.It Cm Down-arrow, j, Ctrl-n
Move the selection cursor down.
-.It Cm Up-arrow, k
+.It Cm Up-arrow, k, Ctrl-p
Move the selection cursor up.
.It Cm Page-down, Ctrl+f
Move the selection cursor down one page.
blob - 810503c77404623c48136692ab83b09ef677b70f
blob + 74c66761f4e9c5685b0a4c978e74ba94fe3579ca
--- tog/tog.c
+++ tog/tog.c
case KEY_UP:
case '<':
case ',':
+ case CTRL('p'):
if (s->first_displayed_entry == NULL)
break;
if (s->selected > 0)
case KEY_DOWN:
case '>':
case '.':
+ case CTRL('n'):
if (s->first_displayed_entry == NULL)
break;
if (s->selected < MIN(view->nlines - 2,
break;
case 'k':
case KEY_UP:
+ case CTRL('p'):
if (s->first_displayed_line > 1)
s->first_displayed_line--;
break;
break;
case 'j':
case KEY_DOWN:
+ case CTRL('n'):
if (!s->eof)
s->first_displayed_line++;
break;
break;
case 'k':
case KEY_UP:
+ case CTRL('p'):
if (s->selected_line > 1)
s->selected_line--;
else if (s->selected_line == 1 &&
break;
case 'j':
case KEY_DOWN:
+ case CTRL('n'):
if (s->selected_line < view->nlines - 2 &&
s->first_displayed_line +
s->selected_line <= s->blame.nlines)
break;
case 'k':
case KEY_UP:
+ case CTRL('p'):
if (s->selected > 0) {
s->selected--;
break;
break;
case 'j':
case KEY_DOWN:
+ case CTRL('n'):
if (s->selected < s->ndisplayed - 1) {
s->selected++;
break;
break;
case 'k':
case KEY_UP:
+ case CTRL('p'):
if (s->selected > 0) {
s->selected--;
break;
break;
case 'j':
case KEY_DOWN:
+ case CTRL('n'):
if (s->selected < s->ndisplayed - 1) {
s->selected++;
break;