~mdw
/
tig
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
4d55caf
)
Bind 'b' to Page Up, and Space to Page Down
author
Kristian Høgsberg
<krh@bitplanet.net>
Wed, 17 May 2006 22:20:21 +0000
(
00:20
+0200)
committer
Jonas 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
patch
|
blob
|
blame
|
history
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::
+ * 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