Commit 27890b182992d202636b55c305e5dc4175f4cd0b

Stefan Sperling 2021-08-30T18:54:51

remove the 'ctrl+u' shortcut in favour of just 'g' as alias for 'Home' Our use of ctrl+u was not consistent with vi(1) after all. Discussed with naddy, tb, and jasper on gameoftrees@

diff --git a/tog/tog.1 b/tog/tog.1
index 3d45c56..b1b0a5e 100644
--- a/tog/tog.1
+++ b/tog/tog.1
@@ -108,7 +108,7 @@ Move the selection cursor up.
 Move the selection cursor down one page.
 .It Cm Page-up, Ctrl+b
 Move the selection cursor up one page.
-.It Cm Home, g, Ctrl-u
+.It Cm Home, g
 Move the cursor to the newest commit.
 .It Cm End, G
 Move the cursor to the oldest commit.
diff --git a/tog/tog.c b/tog/tog.c
index c79cf3b..c8ded57 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -2415,7 +2415,6 @@ input_log_view(struct tog_view **new_view, struct tog_view *view, int ch)
 		select_commit(s);
 		break;
 	case 'g':
-	case CTRL('u'):
 	case KEY_HOME:
 		if (s->first_displayed_entry == NULL)
 			break;