diff options
author | bptato <nincsnevem662@gmail.com> | 2024-06-02 18:54:24 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-06-02 19:17:14 +0200 |
commit | e1a03329f113a30c092d4f1dcd8d99f6ed4ec335 (patch) | |
tree | 7b9ac19a96a535c157938687cc017756635e431f /doc | |
parent | 32b2736d92b3f94343c91e86ad9dc67ec2e453b7 (diff) | |
download | chawan-e1a03329f113a30c092d4f1dcd8d99f6ed4ec335.tar.gz |
Update docs
Diffstat (limited to 'doc')
-rw-r--r-- | doc/architecture.md | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/doc/architecture.md b/doc/architecture.md index b3d2d6ec..afee484b 100644 --- a/doc/architecture.md +++ b/doc/architecture.md @@ -235,26 +235,19 @@ console.log(document.querySelector("html").canary); /* chirp */ ### JS in the pager -Currently this is very limited: keybindings can be assigned JavaScript functions -in the config, and then the pager executes those when the keybindings are -pressed. - -(This turns out to be a rather poor configuration system, so we have a plan to -improve it [here](https://todo.sr.ht/~bptato/chawan/6). Just need to implement -it some time...) +Keybindings can be assigned JavaScript functions in the config, and then the +pager executes those when the keybindings are pressed. Also, contents of the start.startup-script option are executed at startup. This is used when `cha` is called with the `-r` flag. -There *is* an API, but it's somewhat underdocumented. Web APIs are exposed to +There *is* an API, described at [api.md](api.md). Web APIs are exposed to pager too, but you cannot operate on the DOMs themselves from the pager, unless you create one yourself with DOMParser.parseFromString. [config.md](config.md) describes all commands that are used in the default config. -A more complete description of the API can be found in [api.md](api.md). - ### JS in the buffer The DOM is implemented through the same wrappers as those in pager. (Obviously, |