about summary refs log tree commit diff stats
path: root/doc/api.md
Commit message (Collapse)AuthorAgeFilesLines
* container, config.toml: add | commandbptato2025-01-191-0/+9
| | | | | | Particularly useful when debugging minified JS. vi always wraps; the centering behavior is from vim.
* config: switch to camel casebptato2025-01-131-3/+3
| | | | | | We already need a camel -> kebab converter anyway. Unfortunately this also changes JS binding names, so it's a breaking change. Oh well.
* client: document readFile, writeFile; add getenv, setenvbptato2024-12-141-0/+30
| | | | | | | | Both are quite useful. readFile and writeFile got a small makeover in error handling; in particular, readFile now returns null instead of the empty string when the file is missing and writeFile throws a TypeError on I/O errors.
* Update docs, w3m.tomlbptato2024-12-091-1/+1
|
* pager: do not make pointless requests in viewImage, add saveImagebptato2024-11-301-4/+8
| | | | | | | with buffer.images enabled, we already cache them, so we can skip the additional request also, add saveImage, bound to sI
* Update docsbptato2024-11-261-0/+24
|
* Update docsbptato2024-11-241-54/+97
|
* container: add Lynx-style navigation commandscommodorian2024-11-231-0/+7
|
* pager: misc extern fixesbptato2024-10-271-5/+7
| | | | | * fix externFilterSource ignoring content types other than html * refactor runProcess to use a custom fork/exec instead of system(3)
* pager: improve hover text handlingbptato2024-09-221-0/+5
| | | | | | | | | | | * align status truncating behavior with w3m (not exactly, clipping is still different, but this should be fine for now) * add "su" for "show last alert" - w3m's solution here is to scroll one char at a time with "u", but that's extremely annoying to use. We already have a line editor that can navigate lines, so reuse that instead. * fix peekCursor showing empty text * update todo
* Update docsbptato2024-08-101-0/+10
|
* buffer, pager, config: add meta-refresh + misc fixesbptato2024-07-281-1/+4
| | | | | | | | | * 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
* pager: rework D/discard bufferbptato2024-05-311-4/+4
| | | | | | | | | | | | | | | | | | | | | The previous solution had the issue that it switched between "delete buffer, then move back" and "delete buffer, then move forward" depending on whether the buffer was the root of the buffer tree, which made its behavior quite unpredictable. Now the pager (sort of) remembers the direction you are coming from, and D moves in that direction. So e.g.: * Enter, D just moves back to where you were coming from (as before) * Comma, D deletes the previous buffer, then returns to the current buffer If no buffer exists in the target direction, then we alert. Also, new commands are: `d,' `d.'. They do the same thing the non-d-prefixed variations do, but also delete the current buffer. Useful if you're no longer sure where you are coming from, but know where you want to go. (`d,' in particular is equivalent to w3m's `B'.)
* Update docsbptato2024-05-041-84/+34
|
* Update docsbptato2024-04-241-0/+663