From: Kristian Høgsberg Date: Wed, 17 May 2006 22:20:21 +0000 (+0200) Subject: Bind 'b' to Page Up, and Space to Page Down X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c622eefaa485995320bc743431bae0d497b1d875;p=tig.git Bind 'b' to Page Up, and Space to Page Down Makes tig more compatible with less and other pagers. Signed-off-by: Jonas Fonseca --- diff --git a/tig.c b/tig.c index e57206c..64a8f4a 100644 --- a/tig.c +++ b/tig.c @@ -1746,8 +1746,10 @@ static struct keymap keymap[] = { * j:: * Move cursor one line down and enter. * PgUp:: + * b:: * Move cursor one page up. * PgDown:: + * Space:: * Move cursor one page down. * Home:: * Jump to first line. @@ -1761,7 +1763,9 @@ static struct keymap keymap[] = { { KEY_HOME, REQ_MOVE_FIRST_LINE }, { KEY_END, REQ_MOVE_LAST_LINE }, { KEY_NPAGE, REQ_MOVE_PAGE_DOWN }, + { ' ', REQ_MOVE_PAGE_DOWN }, { KEY_PPAGE, REQ_MOVE_PAGE_UP }, + { 'b', REQ_MOVE_PAGE_UP }, /** * Scrolling