about summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
...
* config: add gotoLine as M-gbptato2023-09-071-0/+1
|
* dom: set input type to text if not givenbptato2023-09-071-0/+2
| | | | | | | HTMLInputElement.inputString depends on inputType not being unknown. (Maybe we should move this logic out of the html parser module entirely and just set text as the default value...)
* twtstr: remove some unused procsbptato2023-09-071-22/+0
| | | | | | | * substr for Rune with 1 param: gone, ideally the other should be removed too * clearControls: gone, not used anymore. * split for Rune: gone, not used anymore.
* twtstr: remove toLowerAscii2bptato2023-09-072-23/+10
|
* update todobptato2023-09-071-0/+1
|
* url: optimizebptato2023-09-071-15/+21
| | | | | | | * get rid of a copy by the initial strip() call * get rid of a copy by an avoidable substr() call Also, replace Letters with AsciiAlpha for consistency's sake.
* url: fix \n, \t not being properly removedbptato2023-09-071-1/+3
| | | | | | For some reason we were only stripping tabs and newlines from the beginning/end of the string. The standard says they should be ignored completely.
* toml: remove unused importbptato2023-09-071-1/+0
|
* loader: get rid of xdeclaredbutnotused warningbptato2023-09-071-0/+1
| | | | | sig is injected into the template body, but then never used, so we discard it.
* toml: fix newline counting in multiline stringsbptato2023-09-071-2/+4
| | | | also, replace the todo comment
* main: remove stray eprint, update -o info textbptato2023-09-061-2/+1
| | | | | QUIT was old-style declarative keybinding syntax, this is no longer supported.
* fix typobptato2023-09-061-2/+2
|
* main: allow grouped single-letter paramsbptato2023-09-051-59/+94
| | | | | so for example now -MV sets monochrome + visual mode instead of erroring out
* javascript: reference unforgeables in tablebptato2023-09-041-1/+1
| | | | | Conceptually, seqs are by-value. In practice I they are by-ref, but let's not depend on this.
* tojs: fix memory leakbptato2023-09-041-5/+12
| | | | | | Welp. GC_ref should only be called if a new reference is being created. This is what we did until 48f1306f, where this regression slipped in.
* Fix compilation < Nim 2.0bptato2023-09-041-1/+1
| | | | Before Nim 2.0, addr could only be used with mutable variables.
* quickjs: add Array.prototype.atbptato2023-09-031-0/+30
|
* loader, data: remove stray eprintsbptato2023-09-022-4/+0
|
* buffer: run JS jobs on connected/read/errorbptato2023-09-011-0/+6
| | | | | | Not exactly the cleanest solution, but it should work for now. (Ideally it would only be called once after the select IF any of the three occurred on a fetchable file descriptor.)
* loader: add data URLsbptato2023-09-015-6/+72
|
* res: remove unused filesbptato2023-09-0135-79418/+0
| | | | These now live in separate repositories.
* url: remove validation error commentsbptato2023-09-011-76/+9
| | | | | Chawan has no use for validation errors. Either the URL parses or it does not.
* url: format codebptato2023-09-011-97/+130
| | | | for consistency
* url: fix opaque host parsing, add has to auth casebptato2023-09-011-6/+7
| | | | | | | | * Opaque host parsing: it was not returning the output value. Also, special was not being passed to the host parser so in effect it wasn't even being used at all. * Authority case: it was checking for c without checking for has, that might cause an OOB exception.
* Update readmebptato2023-09-011-24/+21
| | | | Simplify & reword.
* update todobptato2023-09-011-6/+8
|
* buffer: add javascript: URL supportbptato2023-09-011-3/+39
| | | | | | | | | Caveats: * only works in buffers, no navigation yet * converts the output result into a data URL, but data URLs are not supported yet... If JS is disabled, we simply do nothing.
* dom: fix previousElementSiblingbptato2023-09-011-2/+2
| | | | (again. ouch.)
* buffer: fix repaint on click eventsbptato2023-08-311-1/+2
|
* buffer: basic click event supportbptato2023-08-315-16/+81
| | | | | | | Mostly a proof of concept. Just bubble it unconditionally for now and never prevent default. Also, fix fromJSFunction by Dup'ing its closure JSValue.
* dom: fix previous/nextElementSibling, add location stringifierbptato2023-08-311-12/+15
|
* javascript: fix fromJSFunction, simplify setOpaquebptato2023-08-303-5/+7
| | | | | | * fromJSFunction: dup the value, so that it cannot go out of context. * setOpaque no longer calls GC_ref, so no need for it to be generic instead of just taking a pointer.
* Update todobptato2023-08-301-3/+0
|
* javascript: factor out fromJSbptato2023-08-2911-492/+509
|
* javascript: move error ctors to js/errorbptato2023-08-292-48/+48
|
* js: fix typobptato2023-08-291-1/+1
|
* Add jsdelprop, allow deletion of ActionMap propsbptato2023-08-292-2/+47
| | | | mostly for symmetry with real objects
* Add jssetprop, make ActionMap editable from JSbptato2023-08-292-21/+68
| | | | | | | | | jssetprop just adds the set_property exotic function. ActionMap is now editable from JS; the setter is implemented in the same way as bindPagerKey/bindLineKey. (In fact, now those two just call the setter.) But this is still rather inefficient and subject to change.
* path: remove ellipseLinesbptato2023-08-281-26/+0
| | | | | | | It was unused. (Or more precisely, indefinitely not implemented. TODO: implement it one day.)
* refactor: Result[T, DOMException] -> DOMResult[T]bptato2023-08-282-24/+21
|
* refactor: Result[T, JSError] -> JSResult[T]bptato2023-08-286-34/+32
|
* javascript: refactorbptato2023-08-2826-416/+461
| | | | | | | Split out parts of the JS module, because it was starting to confuse the compiler a little. (Peakmem is back at 750M. Interesting.)
* color: use parseRGBAColor for string parsingbptato2023-08-281-1/+1
| | | | Accept here what the TOML config parser would accept too.
* javascript: de-ref some interfacesbptato2023-08-284-94/+99
| | | | | | | Also, make ActionMap use getters/hasprop instead of a table copy. peakmem remains up +200M at 950M after commit 9991bd3393483158ab0d1b9d995f695dee3c65dc. :(
* config: allow modification through JSbptato2023-08-275-59/+133
| | | | | | | This used to be possible until I moved everything under separate headers to their respective objects. Now it works again, mostly; modification of some attributes is still missing.
* javascript: allow by-ref getters to non-ref objectsbptato2023-08-271-36/+161
| | | | | | | | This makes not creating separate reference types for SameObject attributes possible. Also add a fromJS2 "hook" to allow defining fromJS behavior in modules other than javascript.
* Allow overriding libcurl namebptato2023-08-262-4/+10
| | | | for better compatibility with curl-impersonate
* mailcap: fix newline parsingbptato2023-08-261-1/+1
| | | | skipBlanks should not consume newlines.
* config: fix overriding default headersbptato2023-08-263-28/+27
| | | | | * simplify ActionMap reading * introduce separate case for Table
* Allow overriding default headersbptato2023-08-266-16/+19
|