From 9653c35fb9a4398942ecb305835a95fbd87c433a Mon Sep 17 00:00:00 2001 From: bptato Date: Sun, 28 Jul 2024 20:50:51 +0200 Subject: buffer, pager, config: add meta-refresh + misc fixes * buffer, pager, config: add meta-refresh value, which makes it possible to follow http-equiv=refresh META tags. * config: clean up redundant format mode parser * timeout: accept varargs for params to pass on to functions * pager: add "options" dict to JS gotoURL * twtstr: remove redundant startsWithNoCase --- doc/api.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'doc/api.md') diff --git a/doc/api.md b/doc/api.md index ac928baf..0480e901 100644 --- a/doc/api.md +++ b/doc/api.md @@ -110,9 +110,12 @@ Same as `pager.load(url + "\n")`. -`gotoURL(url)` +`gotoURL(url, options = {replace: null, contentType: null})` 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.
+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 +forcefully set to that string.
Use this for loading automatically retrieved (i.e. non-user-provided) URLs. -- cgit 1.4.1-2-gfad0