about summary refs log tree commit diff stats
path: root/res
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-09-26 16:52:57 +0200
committerbptato <nincsnevem662@gmail.com>2023-09-26 16:54:46 +0200
commit2b47c6f5ac8d41a8025c10d02da4d6090e616a68 (patch)
treee97afd43206d14b058813d159dc1f53c59b8f20b /res
parentee17e946c53e6ca807dea2df04f8f2b9eedd754f (diff)
downloadchawan-2b47c6f5ac8d41a8025c10d02da4d6090e616a68.tar.gz
Add precnum support to more functions
Diffstat (limited to 'res')
-rw-r--r--res/config.toml22
1 files changed, 11 insertions, 11 deletions
diff --git a/res/config.toml b/res/config.toml
index 89b42cbe..fbda89b6 100644
--- a/res/config.toml
+++ b/res/config.toml
@@ -77,9 +77,9 @@ b = 'pager.cursorPrevWord()'
 w = 'pager.cursorNextWord()'
 '[' = 'pager.cursorPrevLink()'
 ']' = 'pager.cursorNextLink()'
-H = 'pager.cursorTop()'
-M = 'pager.cursorMiddle()'
-L = 'pager.cursorBottom()'
+H = 'n => pager.cursorTop(n ?? 1)'
+M = '() => pager.cursorMiddle()'
+L = 'n => pager.cursorBottom(n ?? 1)'
 ';' = 'pager.cursorLeftEdge()'
 '+' = 'pager.cursorMiddleColumn()'
 '@' = 'pager.cursorRightEdge()'
@@ -91,12 +91,12 @@ C-b = 'pager.pageUp()'
 'M-[5~' = 'pager.pageUp()'
 '>' = 'pager.pageRight()'
 '<' = 'pager.pageLeft()'
-C-e = 'pager.scrollDown()'
-C-y = 'pager.scrollUp()'
-J = 'pager.scrollDown()'
-K = 'pager.scrollUp()'
-'('= 'pager.scrollLeft()'
-')' = 'pager.scrollRight()'
+C-e = 'n => pager.scrollDown(n ?? 1)'
+C-y = 'n => pager.scrollUp(n ?? 1)'
+J = 'n => pager.scrollDown(n ?? 1)'
+K = 'n => pager.scrollUp(n ?? 1)'
+'('= 'n => pager.scrollLeft(n ?? 1)'
+')' = 'n => pager.scrollRight(n ?? 1)'
 C-m = 'pager.click()'
 C-j = 'pager.click()'
 M-u = 'pager.dupeBuffer()'
@@ -123,8 +123,8 @@ M-d = 'pager.discardTree()'
 M-c = 'pager.command()'
 '/' = 'pager.isearchForward()'
 '?' = 'pager.isearchBackward()'
-n = 'pager.searchNext()'
-N = 'pager.searchPrev()'
+n = 'n => pager.searchNext(n ?? 1)'
+N = 'n => pager.searchPrev(n ?? 1)'
 c = 'pager.peek()'
 u = 'pager.peekCursor()'
 C-w = '''