about summary refs log tree commit diff stats
path: root/res
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-02-27 21:48:33 +0100
committerbptato <nincsnevem662@gmail.com>2024-02-27 21:48:33 +0100
commitad6e00f70e3ca5ad95563394199a43cfad9d8034 (patch)
tree44cdd07487eb482a6e684a86c7e7442d2cc411f0 /res
parent7b9444cddb4ec9ca2f7690e488de6e2d69d78e4e (diff)
downloadchawan-ad6e00f70e3ca5ad95563394199a43cfad9d8034.tar.gz
buffer: add image viewer support
Diffstat (limited to 'res')
-rw-r--r--res/chawan.html2
-rw-r--r--res/config.toml1
2 files changed, 3 insertions, 0 deletions
diff --git a/res/chawan.html b/res/chawan.html
index fd72ad98..d27f4689 100644
--- a/res/chawan.html
+++ b/res/chawan.html
@@ -50,6 +50,8 @@ on your environment, the <kbd>Meta</kbd> key may be called <kbd>Alt</kbd> or
 up/down by one row
 <li><kbd>C-l</kbd>: location bar (to enter a URL, etc.)
 <li><kbd>C-k</kbd>: web search
+<li><kbd>Return/Enter key</kbd>: open URL under cursor
+<li><kbd>I</kbd>: view image in external viewer
 <li><kbd>v</kbd>, <kbd>V</kbd>, <kbd>C-v</kbd>: select (normal), select
 (line), select (block)
 <li><kbd>y</kbd>: yank (copy) current selection to system clipboard (needs xsel)
diff --git a/res/config.toml b/res/config.toml
index d95b8b2a..0cee0b87 100644
--- a/res/config.toml
+++ b/res/config.toml
@@ -150,6 +150,7 @@ K = 'n => pager.scrollUp(n)'
 ')' = 'n => pager.scrollRight(n)'
 C-m = 'pager.click()'
 C-j = 'pager.click()'
+I = 'pager.load(pager.hoverImage + "\n")'
 M-u = 'pager.dupeBuffer()'
 C-l = 'pager.load()'
 C-k = 'pager.load("ddg:")'