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 e57206c..64a8f4a 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::
         * j::
         *      Move cursor one line down and enter.
         * PgUp::
+        * b::
         *      Move cursor one page up.
         * PgDown::
         *      Move cursor one page up.
         * PgDown::
+        * Space::
         *      Move cursor one page down.
         * Home::
         *      Jump to first line.
         *      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 },
        { 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 },
        { KEY_PPAGE,    REQ_MOVE_PAGE_UP },
+       { 'b',          REQ_MOVE_PAGE_UP },
 
        /**
         * Scrolling
 
        /**
         * Scrolling