aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2020-08-01 14:06:17 +0200
committerPřemysl Eric Janouch <p@janouch.name>2020-08-01 14:06:17 +0200
commitd124f43cf6c0099c6366ab68aa740b6d9030b669 (patch)
tree885dccfed7a06b00fd5e3ca3065a7e13a8053231
parent0e2a050c4fe611b204543082aa6a77ee03ad183e (diff)
downloadnncmpp-d124f43cf6c0099c6366ab68aa740b6d9030b669.tar.gz
nncmpp-d124f43cf6c0099c6366ab68aa740b6d9030b669.tar.xz
nncmpp-d124f43cf6c0099c6366ab68aa740b6d9030b669.zip
Support vi-like scrolling with C-y and C-e
-rw-r--r--nncmpp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nncmpp.c b/nncmpp.c
index 4540c1f..823b659 100644
--- a/nncmpp.c
+++ b/nncmpp.c
@@ -2011,6 +2011,8 @@ g_normal_defaults[] =
{ "C-n", ACTION_GOTO_ITEM_NEXT },
{ "C-b", ACTION_GOTO_PAGE_PREVIOUS },
{ "C-f", ACTION_GOTO_PAGE_NEXT },
+ { "C-y", ACTION_SCROLL_UP },
+ { "C-e", ACTION_SCROLL_DOWN },
{ "H", ACTION_GOTO_VIEW_TOP },
{ "M", ACTION_GOTO_VIEW_CENTER },