aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p@janouch.name>2018-10-21 04:20:06 +0200
committerPřemysl Janouch <p@janouch.name>2018-10-21 04:20:06 +0200
commitf7e4d8d3d338d845a366828d36db7220a12f4bea (patch)
tree83bbbf3f9083e4f6ac631b7825585e845b345083
parent8f362e787b90f6de41622d72818ade5063507023 (diff)
downloadnncmpp-f7e4d8d3d338d845a366828d36db7220a12f4bea.tar.gz
nncmpp-f7e4d8d3d338d845a366828d36db7220a12f4bea.tar.xz
nncmpp-f7e4d8d3d338d845a366828d36db7220a12f4bea.zip
Add keyboard shortcuts g/G for goto top/bottom
As in less(1).
-rw-r--r--nncmpp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nncmpp.c b/nncmpp.c
index dfde884..44199b8 100644
--- a/nncmpp.c
+++ b/nncmpp.c
@@ -1980,6 +1980,8 @@ g_normal_defaults[] =
{ "End", ACTION_GOTO_BOTTOM },
{ "M-<", ACTION_GOTO_TOP },
{ "M->", ACTION_GOTO_BOTTOM },
+ { "g", ACTION_GOTO_TOP },
+ { "G", ACTION_GOTO_BOTTOM },
{ "S-Up", ACTION_MOVE_UP },
{ "S-Down", ACTION_MOVE_DOWN },
{ "Up", ACTION_GOTO_ITEM_PREVIOUS },