about summary refs log tree commit diff stats
path: root/bonus
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-10-14 17:13:29 +0200
committerbptato <nincsnevem662@gmail.com>2023-10-14 17:16:14 +0200
commitc225ff1619c9db8a48160c4e82c82da91f133f4d (patch)
treeea8a3d4bbad7ddb0b7bed0d21cc726434aefa971 /bonus
parenteae438e48ad7c1558f07d539469ab55c9d67fac4 (diff)
downloadchawan-c225ff1619c9db8a48160c4e82c82da91f133f4d.tar.gz
container: add cursorNthLink, cursorRevNthLink
Diffstat (limited to 'bonus')
-rw-r--r--bonus/w3m.toml17
1 files changed, 2 insertions, 15 deletions
diff --git a/bonus/w3m.toml b/bonus/w3m.toml
index 7510e227..29ef9e5a 100644
--- a/bonus/w3m.toml
+++ b/bonus/w3m.toml
@@ -39,21 +39,8 @@ z = 'pager.centerLine()'
 C-i = 'n => pager.cursorNextLink(n)'
 C-u = 'n => pager.cursorPrevLink(n)'
 M-C-i = 'n => pager.cursorPrevLink(n)'
-#TODO precnum for [, ]
-'[' = '''
-n => {
-	pager.cursorFirstLine();
-	pager.cursorLineBegin();
-	pager.cursorNextLink(n);
-}
-'''
-']' = '''
-n => {
-	pager.cursorLastLine();
-	pager.cursorLineEnd();
-	pager.cursorPrevLink(n);
-}
-'''
+'[' = 'n => pager.cursorNthLink(n)'
+']' = 'n => pager.cursorRevNthLink(n)'
 # Hyperlink selection
 C-j = 'pager.click()'
 C-m = 'pager.click()'