about summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* fetch: use JSDictbptato2023-09-094-46/+139
|
* javascript: add JSDict typebptato2023-09-094-14/+46
| | | | And use that in extern().
* add extern, refactor some term functionsbptato2023-09-097-71/+127
| | | | | | | | | | | * Add an extern() call. Maybe it should be defined on client. It certainly should accept a dictionary instead of the enum type we use now. Perhaps it should return the error code? I'll leave it undocumented until I figure this out. * Refactor enableRawMode, unblockStdin, etc. so that they operate on the term object instead of global state. * Move editor to a separate folder, and factor out runprocess into a different module.
* ouchbptato2023-09-081-1/+1
|
* regex: avoid infinite loopbptato2023-09-081-1/+7
| | | | | A capture size of 0 (e.g. |) no longer sends the regex matcher into an infinite loop.
* update readmebptato2023-09-081-5/+9
|
* dom: align some return values with their webidlbptato2023-09-082-13/+13
| | | | | Certain functions were returning types that do not align with the WebIDL defined in the dom standard.
* Add vi-style numeric prefixes, make gotoLine 1-basedbptato2023-09-085-19/+118
| | | | | | | | * it is now possible to jump to the nth line by typing {n}G * gotoLine is now 1-based, so to go to the first line you would use pager.gotoLine(1) * it is now allowed to return a function from a keybinding (which will be subsequently executed as a regular keybinding)
* container: add separate commands for 0 and ^bptato2023-09-083-1/+16
| | | | | Just as in vi, 0 puts the cursor at the beginning of the current line, and ^ puts the cursor at the position of the first non-blank character.
* url: simplifybptato2023-09-081-26/+10
| | | | | * remove unused parseURL overload * slightly refactor URL ctor and parseURL
* cell: remove old hackbptato2023-09-081-4/+0
| | | | looks like the compiler can now deal with this by itself.
* fetch: allow string input, allow init dictionarybptato2023-09-082-4/+9
|
* buffer.click: implement preventDefaultbptato2023-09-081-8/+16
|
* URL: fix missing searchParams when baseURL is givenbptato2023-09-081-0/+3
| | | | The base.isSome branch was missing the searchParams initialization.
* atob, btoa: handle latin-1 correctlybptato2023-09-081-12/+36
|
* update todobptato2023-09-071-2/+1
|
* Add btoa, atobbptato2023-09-073-0/+38
|
* readme: note lack of Windows supportbptato2023-09-071-0/+1
|
* readme: clarifybptato2023-09-071-2/+2
|
* readme: update minimum required versionbptato2023-09-071-1/+1
| | | | | Older versions have some issues with non-exported symbols in macros that I'm not really interested in working around.
* toml: complain more on unexpected EOFbptato2023-09-071-2/+3
|
* container: remove strformat dependencybptato2023-09-071-2/+4
|
* container: remove attrsbptato2023-09-071-3/+0
| | | | It was unused; we just set the width and height instead.
* 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.