aboutsummaryrefslogtreecommitdiffstats
path: root/doc/api.md
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-11-30 23:46:31 +0100
committerbptato <nincsnevem662@gmail.com>2024-11-30 23:48:24 +0100
commit4a75c969314b86e7863eecb21256928aca7e10bb (patch)
treef7ec06fb1435f91fbca9bcc455f362a1cb0a877e /doc/api.md
parent965fc54297654ec2672719c3a4c44d737d4e08b7 (diff)
downloadchawan-4a75c969314b86e7863eecb21256928aca7e10bb.tar.gz
pager: do not make pointless requests in viewImage, add saveImage
with buffer.images enabled, we already cache them, so we can skip the additional request also, add saveImage, bound to sI
Diffstat (limited to 'doc/api.md')
-rw-r--r--doc/api.md12
1 files changed, 8 insertions, 4 deletions
diff --git a/doc/api.md b/doc/api.md
index 0d2b34a7..dcfe79c0 100644
--- a/doc/api.md
+++ b/doc/api.md
@@ -134,13 +134,17 @@ Same as `pager.load(url + "\n")`.</td>
</tr>
<tr>
-<td>`gotoURL(url, options = {replace: null, contentType: null})`</td>
+<td>`gotoURL(url, options = {replace: null, contentType: null, save: false})`</td>
<td>Go to the specified URL immediately (without a prompt). This differs from
-`load` and `loadSubmit` in that it *does not* try to correct the URL.<br>
+`loadSubmit` in that it loads the exact URL as passed (no prepending https,
+etc.)<br>
When `replace` is set, the new buffer may replace the old one if it loads
-successfully. When `contentType` is set, the new buffer's content type is
+successfully.<br>
+When `contentType` is set, the new buffer's content type is
forcefully set to that string.<br>
-Use this for loading automatically retrieved (i.e. non-user-provided) URLs.</td>
+When `save` is true, the user is prompted to save the resource instead
+of displaying it in a buffer.<br>
+</td>
</tr>
<tr>