about summary refs log tree commit diff stats
path: root/res
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-12-09 14:43:10 +0100
committerbptato <nincsnevem662@gmail.com>2023-12-09 16:36:23 +0100
commit6a1b1a2edfc6adf3d1d1a1aaa2c9fd95eccc8ff7 (patch)
treef2760bbb12b79925fa1c87dde9e05ddd74310683 /res
parent14f5605061501fa56d9b4970571858f6451e4710 (diff)
downloadchawan-6a1b1a2edfc6adf3d1d1a1aaa2c9fd95eccc8ff7.tar.gz
pager: add `{', `}'; document externInto
{ & } acts like in vi (except the cursor is not moved to the line
beginning).

No reason to leave externInto undocumented, as it is even used in
the default config.
Diffstat (limited to 'res')
-rw-r--r--res/chawan.html1
-rw-r--r--res/config.toml2
2 files changed, 3 insertions, 0 deletions
diff --git a/res/chawan.html b/res/chawan.html
index 271e3e6b..c2be720c 100644
--- a/res/chawan.html
+++ b/res/chawan.html
@@ -62,6 +62,7 @@ up/down by one row
 <li><kbd>C-d</kbd>, <kbd>C-u</kbd>: scroll up/down by half a page
 <li><kbd>C-f</kbd>, <kbd>C-b</kbd> (or <kbd>PgDn</kbd>, <kbd>PgUp</kbd>)</kbd>:
 scroll up/down by an entire page
+<li><kbd>{</kbd>, <kbd>}</kbd>: move cursor to the previous/next paragraph
 <li><kbd>(</kbd>, <kbd>)</kbd> (or <kbd>zh</kbd>, <kbd>zl</kbd>): shift
 screen to the left/right by one cell
 <li><kbd>&lt;</kbd>, <kbd>&gt;</kbd>: shift screen to the left/right by one page
diff --git a/res/config.toml b/res/config.toml
index a263fcb7..2e5d0a8b 100644
--- a/res/config.toml
+++ b/res/config.toml
@@ -85,6 +85,8 @@ b = 'pager.cursorPrevWord()'
 w = 'pager.cursorNextWord()'
 '[' = 'pager.cursorPrevLink()'
 ']' = 'pager.cursorNextLink()'
+'{' = 'n => pager.cursorPrevParagraph(n)'
+'}' = 'n => pager.cursorNextParagraph(n)'
 H = 'n => pager.cursorTop(n)'
 M = '() => pager.cursorMiddle()'
 L = 'n => pager.cursorBottom(n)'