about summary refs log tree commit diff stats
path: root/bonus
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-03-01 16:03:38 +0100
committerbptato <nincsnevem662@gmail.com>2024-03-01 16:03:38 +0100
commitb7be2657e0743b8880c453783901e90cb5f42861 (patch)
tree553f4a69bb51f48a0fb1136e23fd1df8dc3a62d5 /bonus
parent28a760d7823fcb53de26dceeda376a74ce1cd88a (diff)
downloadchawan-b7be2657e0743b8880c453783901e90cb5f42861.tar.gz
bonus/w3m.toml: emacs-style page-up/down
this is more or less how it works in w3m
Diffstat (limited to 'bonus')
-rw-r--r--bonus/w3m.toml10
1 files changed, 6 insertions, 4 deletions
diff --git a/bonus/w3m.toml b/bonus/w3m.toml
index 5a92b8c8..7cc07ef5 100644
--- a/bonus/w3m.toml
+++ b/bonus/w3m.toml
@@ -5,10 +5,12 @@
 
 [page]
 # Page/cursor movement
-' ' = 'n => pager.pageDown(n)'
-C-v = 'n => pager.pageDown(n)'
-b = 'n => pager.pageUp(n)'
-M-v = 'n => pager.pageUp(n)'
+' ' = 'n => pager.scrollDown(pager.height * (n ?? 1))'
+C-v = 'n => pager.scrollDown(pager.height * (n ?? 1))'
+b = 'n => pager.scrollUp(pager.height * (n ?? 1))'
+M-v = 'n => pager.scrollUp(pager.height * (n ?? 1))'
+'M-[6~' = 'n => pager.scrollDown(pager.height * (n ?? 1))'
+'M-[5~' = 'n => pager.scrollUp(pager.height * (n ?? 1))'
 l = 'n => pager.cursorRight(n)'
 h = 'n => pager.cursorLeft(n)'
 j = 'n => pager.cursorDown(n)'