about summary refs log tree commit diff stats
path: root/doc/api.md
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-07-28 20:50:51 +0200
committerbptato <nincsnevem662@gmail.com>2024-07-28 21:06:28 +0200
commit9653c35fb9a4398942ecb305835a95fbd87c433a (patch)
tree2db576e71cd89557592715d64ecb4fb4a46f8c66 /doc/api.md
parentdbf2e0e831ebaf8a0e6f375a8f423f87280e7862 (diff)
downloadchawan-9653c35fb9a4398942ecb305835a95fbd87c433a.tar.gz
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
Diffstat (limited to 'doc/api.md')
-rw-r--r--doc/api.md5
1 files changed, 4 insertions, 1 deletions
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")`.</td>
 </tr>
 
 <tr>
-<td>`gotoURL(url)`</td>
+<td>`gotoURL(url, options = {replace: null, contentType: null})`</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>
+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.<br>
 Use this for loading automatically retrieved (i.e. non-user-provided) URLs.</td>
 </tr>
 
href='/akkartik/text.love/commit/manual_tests?id=5d8e7a3cc6bde06cd8ef79bae66538b22d34b957'>5d8e7a3 ^
dcfa2d0 ^

7e6705a ^







c28f6ba ^
ce94f8b ^
7e6705a ^
c28f6ba ^
10c9618 ^


bb9e23a ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37