about summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* bindings: fix JSInterruptHandler signaturebptato2023-09-152-2/+2
|
* dom: fix incorrect iteration in descendantsbptato2023-09-141-2/+3
|
* buffer: directly pass EncoderStream to parseStylesheetbptato2023-09-141-3/+2
| | | | No need for that extra copy into a StringStream.
* Update submodulesbptato2023-09-146-5/+16
|
* remove radixtreebptato2023-09-141-195/+0
| | | | only used in chame
* move around more modulesbptato2023-09-1454-121/+121
| | | | | | | | | | * ips -> io/ * loader related stuff -> loader/ * tempfile -> extern/ * buffer, forkserver -> server/ * lineedit, window -> display/ * cell -> types/ * opt -> types/
* move some modules to local/bptato2023-09-145-6/+6
| | | | makes a bit more sense than the previous arrangement
* Switch buffer -> client connection to client -> bufferbptato2023-09-143-37/+29
| | | | | | | | | | | | We now connect to buffers from the client, instead of connecting buffers to the client. This has the following advantages: * Simplifies the client event loop. * Makes the client a real client (no more serversocket dependency). * Slightly more secure, as we no longer have to trust buffers not lying about their process ids. * Facilitates the potential future addition of connections from several clients to a single buffer.
* fix ansi color parsing of multiple valuesbptato2023-09-131-1/+0
| | | | | Increasing the index breaks parsing, because that is already done in getParam().
* twtstr: simplifybptato2023-09-132-13/+8
| | | | | | * remove unused function isAlphaAscii * swap pushHex for less casting * remove == overload for char/rune (we did not really use it anyway)
* toml: fix underscore number separatorbptato2023-09-131-1/+1
| | | | | | Underscores should not be added to repr. Also, was_num should only start as true if the first character is a number, and must be true after the while loop.
* Do not use mailcap for text/plainbptato2023-09-131-0/+5
|
* fix compile errorbptato2023-09-131-1/+1
| | | | aaaaaa
* toml: simplifybptato2023-09-131-4/+2
| | | | I meant to put this in the previous commit
* toml: fix bugs in parseNumberbptato2023-09-131-12/+15
| | | | | The input c was not considered, so positive/negative/non-decimal number parsing was incorrect.
* toml: do not stream inputbptato2023-09-131-4/+1
| | | | | | | | | It is more efficient to just read the whole file into memory than to... read the whole file into memory, but one piece at a time, while calling the rather slow readLine function for each chunk. (Also, configuration files are rather small, so even a proper streaming implementation would be pointless.)
* toml: add support for hex/octal numbersbptato2023-09-131-9/+45
|
* color: fix parseLegacyColor bugsbptato2023-09-132-10/+14
| | | | | | * lower-case the input string. * do not fall back to black on error. (i.e. remove the special cased parseLegacyColor0 in cascade)
* config: fix invalid use of externbptato2023-09-131-1/+2
|
* layout: make table rowspan occupy several rowsbptato2023-09-112-20/+51
| | | | | Now cells with a rowspan > 1 actually occupy several rows. The implementation is quite ugly but it should work for now.
* Makefile: add debugger:native to debug targetbptato2023-09-111-1/+1
|
* layout: fix table row group regressionbptato2023-09-101-9/+29
| | | | | Turns out we had the row groups separated for a reason: we need them so we can implicitly sort rows based on their row group type.
* container: accept numbers in cursorLeft, cursorRight, etc.bptato2023-09-093-25/+25
| | | | | | These functions now take a numeric argument to determine how many cells/lines to move. Also, update the default config so e.g. 9j now works.
* layout: simplify preBuildTableRowsbptato2023-09-091-36/+13
| | | | the iterator here was rather pointless
* layout: remove commented out hackbptato2023-09-091-10/+0
| | | | | | Specifically, we used to set the width computed value of table cells manually in the past. It was a hack that never worked very well, and has been unnecessary ever since we switched to SizeConstraints.
* layout: add table rowspanbptato2023-09-093-13/+57
|
* fix compilation on 1.6.14bptato2023-09-091-3/+3
| | | | changing addr semantics strikes again
* buffer: remove url referencebptato2023-09-091-2/+3
| | | | The same reference is already stored in BufferSource as location.
* javascript: fix a GC bugbptato2023-09-092-5/+23
| | | | | | | GC_unref may indirectly call nim_finalize_for_js, which could mess up execution of checkDestroy. I haven't encountered it in refc, but it's definitely present in orc.
* blob: use JSDictbptato2023-09-091-10/+14
|
* tojs: remove JSDictbptato2023-09-091-12/+0
| | | | it's broken anyway, and unused currently
* remove obsolete commentbptato2023-09-091-1/+0
|
* event: use JSDictbptato2023-09-091-20/+18
|
* 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
|