Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | container: accept numbers in cursorLeft, cursorRight, etc. | bptato | 2023-09-09 | 1 | -8/+8 |
| | | | | | | 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. | ||||
* | add extern, refactor some term functions | bptato | 2023-09-09 | 1 | -0/+5 |
| | | | | | | | | | | | * 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. | ||||
* | Add vi-style numeric prefixes, make gotoLine 1-based | bptato | 2023-09-08 | 1 | -6/+5 |
| | | | | | | | | * 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 ^ | bptato | 2023-09-08 | 1 | -0/+9 |
| | | | | | 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. | ||||
* | container: remove strformat dependency | bptato | 2023-09-07 | 1 | -2/+4 |
| | |||||
* | container: remove attrs | bptato | 2023-09-07 | 1 | -3/+0 |
| | | | | It was unused; we just set the width and height instead. | ||||
* | Add mailcap, mime.types & misc refactorings | bptato | 2023-08-13 | 1 | -44/+67 |
| | | | | | | | | * add mailcap: works with copiousoutput, needsterminal, etc. * add mime.types (only works with mailcap) * refactor pipeBuffer * remove "dispatcher" * fix bug in directory display where baseurl would not be used | ||||
* | Fix double line bug in dump mode | bptato | 2023-07-29 | 1 | -2/+2 |
| | |||||
* | Buffer search fixes & improvements | bptato | 2023-07-11 | 1 | -17/+26 |
| | | | | | * Fix race condition in updateReadLineISearch * Disable reshape during isearch | ||||
* | Add popup menu for select element | bptato | 2023-07-05 | 1 | -44/+153 |
| | | | | | | | Replaces the weird CSS implementation we have had until now with a searchable popup menu similar to that of w3m. (The previous implementation broke on websites that do not expect <select> to expand on click, had no separate search, and was ugly.) | ||||
* | use =destroy instead of finalizers | bptato | 2023-07-01 | 1 | -0/+2 |
| | | | | | This should help with moving to ORC in the future. (Also, finalizers do not work very well in the first place.) | ||||
* | Improve broken cookie handling, add multipart to form | bptato | 2023-06-25 | 1 | -2/+3 |
| | | | | | | | | Now it's not as horribly broken as before (but it's still far from perfect). We can at least log in to sr.ht (hooray). The form multipart part is straightforward, just pass what we used to pass long ago before I broke multipart. | ||||
* | Rework JS exception system | bptato | 2023-06-19 | 1 | -2/+2 |
| | | | | | Now we use Result for passing exceptions to JS. As a result, we can finally get rid of the .jserr pragma. | ||||
* | Add XTERM title renaming | bptato | 2023-06-07 | 1 | -2/+2 |
| | |||||
* | Fix more config inconsistencies | bptato | 2023-06-01 | 1 | -1/+1 |
| | | | | So that the default config actually works again. Also some doc updates. | ||||
* | Name negative response codes | bptato | 2023-05-14 | 1 | -1/+1 |
| | |||||
* | buffer: disable popup confirmation for forms | bptato | 2023-04-10 | 1 | -1/+2 |
| | |||||
* | buffer: do not move cursor in scrollLeft | bptato | 2023-01-20 | 1 | -2/+0 |
| | |||||
* | buffer/container: fix cursor overwriting double-width chars | bptato | 2023-01-11 | 1 | -1/+22 |
| | | | | | In some terminals, placing the cursor on the second cell of a double-width character deletes half of said character, so let's not do that. | ||||
* | Slightly refactor commandMode | bptato | 2023-01-06 | 1 | -1/+1 |
| | |||||
* | Add ask() | bptato | 2023-01-05 | 1 | -0/+3 |
| | |||||
* | container, pager: work around bad codegen | bptato | 2023-01-02 | 1 | -3/+3 |
| | |||||
* | Fix connection load info not being shown | bptato | 2023-01-02 | 1 | -1/+1 |
| | |||||
* | loader: proper redirect handling | bptato | 2023-01-01 | 1 | -5/+3 |
| | |||||
* | buffer: fix some search bugs & refactor regex stuff | bptato | 2023-01-01 | 1 | -22/+18 |
| | | | | | | | | cursorBytes uses twidth now. cursorNextMatch matches the byte *after* the cursor (somewhat more consistently than before). match() no longer counts capture groups. LRE_FLAG_GLOBAL now goes through the entire string. | ||||
* | Add promise support to JS | bptato | 2022-12-31 | 1 | -7/+7 |
| | |||||
* | buffer/container: fix highlighting width | bptato | 2022-12-28 | 1 | -2/+2 |
| | |||||
* | Proper support for tabs | bptato | 2022-12-27 | 1 | -35/+32 |
| | |||||
* | container: fix requestLines not setting setx | bptato | 2022-12-25 | 1 | -0/+1 |
| | |||||
* | pager: proxy values in container; js: bugfixes | bptato | 2022-12-20 | 1 | -52/+73 |
| | | | | Also, a little bonus: w3m keybindings | ||||
* | Add unicode normalization, etc | bptato | 2022-12-19 | 1 | -0/+1 |
| | |||||
* | Allow cycling through hover-texts with u | bptato | 2022-12-16 | 1 | -5/+29 |
| | |||||
* | container: do not load all lines at once in readLines | bptato | 2022-12-15 | 1 | -7/+17 |
| | |||||
* | Fix console display bugs, add container.location | bptato | 2022-12-15 | 1 | -1/+4 |
| | |||||
* | Add discardTree, update docs | bptato | 2022-12-15 | 1 | -2/+2 |
| | |||||
* | Make load() slightly less dumb | bptato | 2022-12-15 | 1 | -2/+3 |
| | | | | | This gets rid of the inefficient timeout thing. Still, the ideal solution would be to move the timeout into the container; TODO. | ||||
* | Add referer support, re-render on windowChange | bptato | 2022-12-13 | 1 | -10/+16 |
| | |||||
* | Fix stream error handling confusion, title display | bptato | 2022-12-13 | 1 | -1/+6 |
| | | | | Also probably other fixes. | ||||
* | Add more cookie options | bptato | 2022-12-13 | 1 | -5/+2 |
| | |||||
* | Update config and config docs | bptato | 2022-12-13 | 1 | -2/+5 |
| | |||||
* | Add all sorts of config options and cookies | bptato | 2022-12-13 | 1 | -8/+17 |
| | |||||
* | Add urlfilter | bptato | 2022-12-12 | 1 | -1/+1 |
| | |||||
* | Fixes & QOL improvements | bptato | 2022-12-11 | 1 | -1/+1 |
| | | | | | | | | * fix infinite loop after closing buffer * fix setx not triggering hover updates * fix D not going back to PREV but to parent * add M-d, M-,, M-., M-/ for old D behavior, cycle through siblings, back to parent | ||||
* | Fix -d | bptato | 2022-12-10 | 1 | -12/+9 |
| | |||||
* | Optimize sendCursorPosition/updateHover, close streams after loadResource | bptato | 2022-12-06 | 1 | -10/+9 |
| | |||||
* | Trigger status event when number of lines changed | bptato | 2022-12-05 | 1 | -5/+7 |
| | | | | (So that line information is updated automatically) | ||||
* | Add title tag support, peek, peekCursor | bptato | 2022-12-05 | 1 | -0/+10 |
| | |||||
* | Make redraw() actually clear the screen | bptato | 2022-12-01 | 1 | -1/+3 |
| | | | | It's more useful this way. | ||||
* | Fix some screen update issues, remove redraw timer | bptato | 2022-12-01 | 1 | -7/+14 |
| | | | | | For now it's unnecessary; may be re-added later to support some dynamic document features. | ||||
* | Restore cursor position on reload | bptato | 2022-11-29 | 1 | -29/+42 |
| |