From 4a75c969314b86e7863eecb21256928aca7e10bb Mon Sep 17 00:00:00 2001 From: bptato Date: Sat, 30 Nov 2024 23:46:31 +0100 Subject: 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 --- doc/api.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'doc/api.md') 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")`. -`gotoURL(url, options = {replace: null, contentType: null})` +`gotoURL(url, options = {replace: null, contentType: null, save: false})` 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.
+`loadSubmit` in that it loads the exact URL as passed (no prepending https, +etc.)
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.
+When `contentType` is set, the new buffer's content type is forcefully set to that string.
-Use this for loading automatically retrieved (i.e. non-user-provided) URLs. +When `save` is true, the user is prompted to save the resource instead +of displaying it in a buffer.
+ -- cgit