commit 777aae211a624f0a3c1a7b286382455bd1097c8b from: Mark Jamsek via: Thomas Adam date: Wed Jul 20 08:01:27 2022 UTC tog: alias J and K to > and < keybindings for diff view Use J and K to move to the next and previous commits, respectively, when the diff is loaded from the log or blame views. Patch by Mikhail ok stsp@ commit - 18d1acaddba2a6012509c2de642867984e27dbf4 commit + 777aae211a624f0a3c1a7b286382455bd1097c8b blob - 765c5ecd53d258c8af195523d4fb1fea0c8f41d3 blob + 8a0e89a859e5cbbaffbc78116d37c7899a3468c5 --- tog/tog.1 +++ tog/tog.1 @@ -294,7 +294,7 @@ Scroll to the bottom of the view. Reduce diff context by N lines (default: 1). .It Cm \&] Increase diff context by N lines (default: 1). -.It Cm <, Comma +.It Cm <, Comma, K If the .Cm diff view was opened via the @@ -304,7 +304,7 @@ If the diff was opened via the .Cm blame view, move to the Nth previous line and load the corresponding commit (default: 1). -.It Cm >, Full stop +.It Cm >, Full stop, J If the .Cm diff view was opened via the blob - 243bc3031c43c95c8bb3942763da45e096287e66 blob + 3e3499bf0df91484a55692d1f69eaaeddb7dd13f --- tog/tog.c +++ tog/tog.c @@ -4831,10 +4831,12 @@ input_diff_view(struct tog_view **new_view, struct tog break; case '<': case ',': + case 'K': up = 1; /* FALL THROUGH */ case '>': case '.': + case 'J': if (s->parent_view == NULL) { view->count = 0; break;