commit 5c123d7e57cb1fe21fd82443ba7932836ba94772 from: Stefan Sperling date: Thu Feb 21 20:42:10 2019 UTC make tog's diff view commit selection keys also work in log view commit - fb872ab2dba13eace0d42520567fc4d9aaec0de6 commit + 5c123d7e57cb1fe21fd82443ba7932836ba94772 blob - 1ab6e36e950a8e5047ad602808a8e4dd51158283 blob + b6b01caf451cbbc081bee92d7e0d946c17c40569 --- tog/tog.1 +++ tog/tog.1 @@ -83,9 +83,9 @@ The key bindings for .Cm tog log are as follows: .Bl -tag -width Ds -.It Cm Down-arrow, j, Page-down +.It Cm Down-arrow, j, Page-down, >, Full stop Move the selection cursor down. -.It Cm Up-arrow, k, Page-up +.It Cm Up-arrow, k, Page-up, <, Comma Move the selection cursor up. .It Cm Enter Open a blob - c4a116dc8067adefba4f8a9cf10a08bb30bcf132 blob + dfd3a50b0cb09f904ff7bed4e9d9c5721268d2f6 --- tog/tog.c +++ tog/tog.c @@ -1484,6 +1484,8 @@ input_log_view(struct tog_view **new_view, struct tog_ break; case 'k': case KEY_UP: + case '<': + case ',': if (s->first_displayed_entry == NULL) break; if (s->selected > 0) @@ -1506,6 +1508,8 @@ input_log_view(struct tog_view **new_view, struct tog_ break; case 'j': case KEY_DOWN: + case '>': + case '.': if (s->first_displayed_entry == NULL) break; if (s->selected < MIN(view->nlines - 2,