Code

Bind 'b' to Page Up, and Space to Page Down
authorKristian Høgsberg <krh@bitplanet.net>
Wed, 17 May 2006 22:20:21 +0000 (00:20 +0200)
committerJonas Fonseca <fonseca@antimatter.localdomain>
Wed, 17 May 2006 22:20:21 +0000 (00:20 +0200)
Makes tig more compatible with less and other pagers.

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
tig.c

diff --git a/tig.c b/tig.c
index e57206c75d31296f3dda42f73a10922bb67ae2e0..64a8f4a33145a044d2110a22e7ba35b6095b289a 100644 (file)
--- 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