Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | cgi: do not register closed istreams | bptato | 2024-02-09 | 1 | -1/+2 | |
| | ||||||
* | twtstr: misc refactorings | bptato | 2024-02-09 | 8 | -244/+247 | |
| | | | | | | * move out half width <-> full width converters * snake_case -> camelCase * improve toScreamingSnakeCase slicing | |||||
* | buffer: fix index defect in updateHover | bptato | 2024-02-08 | 1 | -1/+2 | |
| | | | | | | Caused by a race condition when updateHover is executed after buffer.lines.len changed in buffer but before the change has been reported to container. | |||||
* | buffer: use `of' instead of tagType | bptato | 2024-02-08 | 1 | -1/+1 | |
| | ||||||
* | Update chame | bptato | 2024-02-08 | 2 | -1/+1 | |
| | ||||||
* | loader: fix (another) double-close bug | bptato | 2024-02-08 | 1 | -4/+8 | |
| | ||||||
* | loader: fix memory leak | bptato | 2024-02-08 | 1 | -1/+3 | |
| | ||||||
* | loader: fix double-close bugs | bptato | 2024-02-08 | 1 | -3/+3 | |
| | ||||||
* | buffer: load external resources when they are attached | bptato | 2024-02-08 | 4 | -103/+133 | |
| | | | | | We no longer have to wait for the entire document to be loaded to start loading CSS. | |||||
* | loader: fix eagain in fetch, only add URL to handle in debug | bptato | 2024-02-08 | 2 | -7/+12 | |
| | | | | | | * eagain was causing fetch to add unnecessary null bytes to input streams * URL is now only added to handles in debug mode | |||||
* | Update todo | bptato | 2024-02-08 | 1 | -12/+15 | |
| | ||||||
* | dom: reduce todos | bptato | 2024-02-08 | 1 | -10/+20 | |
| | | | | | * enumize insertAdjacentHTML position * un-extern attrs | |||||
* | js: fix fromJSEnum | bptato | 2024-02-08 | 2 | -6/+17 | |
| | | | | std enum parsing uses Nim ident matching rules, which is incorrect here. | |||||
* | chadombuilder: remove unnecessary pragma | bptato | 2024-02-08 | 1 | -1/+1 | |
| | ||||||
* | dom: enumize attribute names | bptato | 2024-02-08 | 8 | -206/+338 | |
| | ||||||
* | dom: atomize id, name, DOMTokenList | bptato | 2024-02-08 | 3 | -103/+162 | |
| | ||||||
* | dom: reduce tagType use | bptato | 2024-02-08 | 4 | -70/+46 | |
| | | | | | tagType is now a function call, but usually it's enough to just test for the object type. | |||||
* | Update readme | bptato | 2024-02-07 | 1 | -4/+4 | |
| | ||||||
* | Update chame | bptato | 2024-02-07 | 2 | -1/+1 | |
| | ||||||
* | Fix some document.write bugs | bptato | 2024-02-07 | 2 | -44/+88 | |
| | ||||||
* | Incremental rendering | bptato | 2024-02-07 | 8 | -224/+389 | |
| | | | | | | | | | | | | Yay! Admittedly, it is not very useful in its current form, except maybe on very slow networks. The problem is that renderDocument is *slow*, so we only run it when onload fails to consume all bytes from the network in a single pass. Even then, we are guaranteed to get a FOUC, since CSS is only downloaded in finishLoad(). Well, I think it's cool, anyway. | |||||
* | Update chame | bptato | 2024-02-07 | 13 | -611/+1092 | |
| | | | | | | | | * Update chame to the latest version * Get rid of nodeType usage * Add atoms * Re-implement DOM attributes * document.write | |||||
* | nim.cfg: disable threads | bptato | 2024-02-06 | 2 | -1/+2 | |
| | | | | | | | We do not use threads at the moment, so there's no need to link to pthreads either. (Also, add nim.cfg to the cha target in the Makefile.) | |||||
* | fix bug in prev commit | bptato | 2024-02-05 | 1 | -1/+1 | |
| | | | | it's 0, not 1 :( | |||||
* | regex: fix 8-bit narrow strings in JS | bptato | 2024-02-05 | 2 | -26/+40 | |
| | | | | | The previous approach to add UTF-8 support to libregexp was broken. This time, we use a separate flag (cbuf_len == 3) to indicate UTF-8 input. | |||||
* | md2html: add support for strikethrough | bptato | 2024-02-05 | 1 | -1/+7 | |
| | ||||||
* | pager: display precnum *and* inputBuffer when precnum != 0 | bptato | 2024-02-01 | 1 | -3/+1 | |
| | | | | Previously we were overwriting it, and that looked a little strange. | |||||
* | Makefile: fix about.nim deps | bptato | 2024-02-01 | 1 | -1/+2 | |
| | ||||||
* | about:license: fix typo | bptato | 2024-02-01 | 1 | -1/+1 | |
| | ||||||
* | md2html: improved underscore ignoring rules | bptato | 2024-02-01 | 1 | -2/+4 | |
| | | | | Only ignore when prev/next chars are not alnum. | |||||
* | md2html: skip space after list item start | bptato | 2024-02-01 | 1 | -2/+2 | |
| | ||||||
* | md2html: detect lists starting with dash | bptato | 2024-02-01 | 1 | -1/+1 | |
| | ||||||
* | toml: misc refactorings | bptato | 2024-01-30 | 1 | -71/+40 | |
| | ||||||
* | toml: allow EOF in values with laxnames | bptato | 2024-01-30 | 1 | -0/+2 | |
| | | | | Useful for clearing settings with -o | |||||
* | config: append */* rule instead of prepending | bptato | 2024-01-30 | 2 | -11/+3 | |
| | | | | | | + actually use the result. Fixes default converters when no external mailcap exists. | |||||
* | Update todo | bptato | 2024-01-30 | 1 | -0/+2 | |
| | ||||||
* | Add default md2html converter | bptato | 2024-01-30 | 5 | -16/+413 | |
| | ||||||
* | doc/config: add missing backtick | bptato | 2024-01-30 | 1 | -1/+1 | |
| | ||||||
* | doc: do not emphasize th text, mention pager.location | bptato | 2024-01-30 | 1 | -33/+38 | |
| | ||||||
* | Add command to yank link under cursor (yc) | bptato | 2024-01-29 | 4 | -5/+34 | |
| | ||||||
* | js: always use var destructor | bptato | 2024-01-29 | 1 | -8/+2 | |
| | | | | See https://forum.nim-lang.org/t/10807 | |||||
* | layout: more consistent naming | bptato | 2024-01-29 | 1 | -79/+41 | |
| | ||||||
* | layout: consider inline positioning for absolute blocks | bptato | 2024-01-29 | 3 | -78/+102 | |
| | | | | | When an absolute block is a descendant of an inline box, its positioned ancestor must be set to that box. | |||||
* | forkserver: clean up | bptato | 2024-01-29 | 5 | -30/+24 | |
| | | | | | Move forkBuffer into forkserver (why was it in container anyway), remove unused mainproc variable, etc. | |||||
* | client: stop entire process group on suspend() | bptato | 2024-01-29 | 2 | -3/+4 | |
| | | | | | * pass 0 so e.g. git does not hang * use sigtstp so e.g. cgi scripts can clean up if needed | |||||
* | man: fix man -k | bptato | 2024-01-27 | 1 | -20/+37 | |
| | ||||||
* | mimetypes: simplify parseMimeTypes | bptato | 2024-01-27 | 2 | -16/+15 | |
| | | | | | * use functions like until * do not call atEnd for every line, use boolean readLine instead | |||||
* | loader: clean up error handling | bptato | 2024-01-26 | 5 | -82/+71 | |
| | | | | | | | | | * remove pointless exception -> bool conversions; usually they were ignored anyway + exceptions are more convenient here * add EPIPE handler to raisePosixIOError * fix socketstream to use raisePosixIOError * fix socketstream sendFileHandle error handling * cgi: immediately return on file not found error | |||||
* | cgi: fix broken libexec path env variable | bptato | 2024-01-26 | 4 | -9/+10 | |
| | ||||||
* | Add mancha man page viewer | bptato | 2024-01-26 | 10 | -11/+434 | |
| | | | | | | | | | | derived from w3mman2html.cgi, there are only a few minor differences: * different man page opener command * use man:, man-k:, man-l: instead of query string to specify action * no form input (C-lC-uman:pageC-m is faster anyway) TODO rewrite in Nim so we don't have to depend on Perl... |