about summary refs log tree commit diff stats
path: root/doc/config.md
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-09-09 22:56:29 +0200
committerbptato <nincsnevem662@gmail.com>2023-09-09 22:56:29 +0200
commit1c6891331b691a1fc3f2c71d333b235507e47ddb (patch)
tree3ec0f5d98f634d98b18f034c4e180229d0b70b50 /doc/config.md
parent6943546078a20c763a9bb346b42681efc0d1e527 (diff)
downloadchawan-1c6891331b691a1fc3f2c71d333b235507e47ddb.tar.gz
container: accept numbers in cursorLeft, cursorRight, etc.
These functions now take a numeric argument to determine how many
cells/lines to move. Also, update the default config so e.g. 9j
now works.
Diffstat (limited to 'doc/config.md')
-rw-r--r--doc/config.md18
1 files changed, 9 insertions, 9 deletions
diff --git a/doc/config.md b/doc/config.md
index 8ee7c07c..114a8152 100644
--- a/doc/config.md
+++ b/doc/config.md
@@ -612,22 +612,22 @@ Note: this does not suspend buffer processes.</td>
 </tr>
 
 <tr>
-<td>`pager.cursorUp()`</td>
-<td>Move the cursor to the previous line.</td>
+<td>`pager.cursorUp(n = 1)`</td>
+<td>Move the cursor upwards by n lines, or if n is unspecified, by 1.</td>
 </tr>
 <tr>
-<td>`pager.cursorDown()`</td>
-<td>Move cursor to the next line.</td>
+<td>`pager.cursorDown(n = 1)`</td>
+<td>Move the cursor downwards by n lines, or if n is unspecified, by 1.</td>
 </tr>
 
 <tr>
-<td>`pager.cursorLeft()`</td>
-<td>Move the cursor to the previous cell.</td>
+<td>`pager.cursorLeft(n = 1)`</td>
+<td>Move the cursor to the left by n cells, or if n is unspecified, by 1.</td>
 </tr>
 
 <tr>
-<td>`pager.cursorRight()`</td>
-<td>Move the cursor to the next cell.</td>
+<td>`pager.cursorRight(n = 1)`</td>
+<td>Move the cursor to the right by n cells, or if n is unspecified, by 1.</td>
 </tr>
 
 <tr>
@@ -843,7 +843,7 @@ open the current buffer's contents as HTML.</td>
 </tr>
 
 <tr>
-<td>`pager.gotoLine()`</td>
+<td>`pager.gotoLine(n?)`</td>
 <td>Go to the line passed as the first argument.<br>
 If no arguments were specified, an input window for entering a line is
 shown.</td>