From 1c6891331b691a1fc3f2c71d333b235507e47ddb Mon Sep 17 00:00:00 2001 From: bptato Date: Sat, 9 Sep 2023 22:56:29 +0200 Subject: 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. --- doc/config.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'doc/config.md') 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. -`pager.cursorUp()` -Move the cursor to the previous line. +`pager.cursorUp(n = 1)` +Move the cursor upwards by n lines, or if n is unspecified, by 1. -`pager.cursorDown()` -Move cursor to the next line. +`pager.cursorDown(n = 1)` +Move the cursor downwards by n lines, or if n is unspecified, by 1. -`pager.cursorLeft()` -Move the cursor to the previous cell. +`pager.cursorLeft(n = 1)` +Move the cursor to the left by n cells, or if n is unspecified, by 1. -`pager.cursorRight()` -Move the cursor to the next cell. +`pager.cursorRight(n = 1)` +Move the cursor to the right by n cells, or if n is unspecified, by 1. @@ -843,7 +843,7 @@ open the current buffer's contents as HTML. -`pager.gotoLine()` +`pager.gotoLine(n?)` Go to the line passed as the first argument.
If no arguments were specified, an input window for entering a line is shown. -- cgit 1.4.1-2-gfad0