about summary refs log tree commit diff stats
path: root/res
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-10-01 11:15:10 +0200
committerbptato <nincsnevem662@gmail.com>2023-10-01 11:33:45 +0200
commit37792c785df6cc09411c19dbe7e2dd50a242755e (patch)
treec9f9d30e9e327625c53c58961f0dc3b3310b52cb /res
parentb028afab5e583fb0166a1ba2030f3250208298d2 (diff)
downloadchawan-37792c785df6cc09411c19dbe7e2dd50a242755e.tar.gz
more vi/m compat
Diffstat (limited to 'res')
-rw-r--r--res/chawan.html2
-rw-r--r--res/config.toml22
2 files changed, 14 insertions, 10 deletions
diff --git a/res/chawan.html b/res/chawan.html
index b73a4347..4bf6fc11 100644
--- a/res/chawan.html
+++ b/res/chawan.html
@@ -39,7 +39,7 @@ the meta key may be called Alt or Escape.)
 <li><b>[</b>, <b>]</b>: move cursor to the previous/next hyperlink
 <li><b>C-d</b>, <b>C-u</b>: scroll up/down by half a page
 <li><b>C-f</b>, <b>C-b</b> (or <b>PgDn</b>, <b>PgUp</b>)</b>: scroll up/down by an entire page
-<li><b>(, )</b>: shift screen to the left/right by one cell
+<li><b>(, ) (or <b>zh</b>, <b>zl</b>): shift screen to the left/right by one cell
 <li><b>&lt;, &gt;</b>: shift screen to the left/right by one page
 <li><b>/</b>, <b>?</b>: search (or search backwards)
 <li><b>n, N</b>: next/previous match
diff --git a/res/config.toml b/res/config.toml
index fed898e9..0b3536a8 100644
--- a/res/config.toml
+++ b/res/config.toml
@@ -89,16 +89,20 @@ L = 'n => pager.cursorBottom(n)'
 ';' = 'pager.cursorLeftEdge()'
 '+' = 'pager.cursorMiddleColumn()'
 '@' = 'pager.cursorRightEdge()'
-C-d = 'pager.halfPageDown()'
-C-u = 'pager.halfPageUp()'
-C-f = 'pager.pageDown()'
-C-b = 'pager.pageUp()'
-'M-[6~' = 'pager.pageDown()'
-'M-[5~' = 'pager.pageUp()'
-'>' = 'pager.pageRight()'
-'<' = 'pager.pageLeft()'
+C-d = 'n => pager.halfPageDown(n)'
+C-u = 'n => pager.halfPageUp(n)'
+C-f = 'n => pager.pageDown(n)'
+C-b = 'n => pager.pageUp(n)'
+'M-[6~' = 'n => pager.pageDown(n)'
+'M-[5~' = 'n => pager.pageUp(n)'
+'zH'= 'n => pager.pageLeft(n)'
+'zL' = 'n => pager.pageRight(n)'
+'<' = 'n => pager.pageLeft(n)'
+'>' = 'n => pager.pageRight(n)'
 C-e = 'n => pager.scrollDown(n)'
 C-y = 'n => pager.scrollUp(n)'
+'zh'= 'n => pager.scrollLeft(n)'
+'zl' = 'n => pager.scrollRight(n)'
 J = 'n => pager.scrollDown(n)'
 K = 'n => pager.scrollUp(n)'
 '('= 'n => pager.scrollLeft(n)'
@@ -113,7 +117,7 @@ U = 'pager.reload()'
 r = 'pager.redraw()'
 R = 'pager.reshape()'
 M-C-c = 'pager.cancel()'
-gg = 'pager.cursorFirstLine()'
+gg = 'n => n ? pager.gotoLine(n) : pager.cursorFirstLine()'
 G = 'n => n ? pager.gotoLine(n) : pager.cursorLastLine()'
 M-g = 'pager.gotoLine()'
 'z.' = 'n => pager.centerLineBegin(n)'