about summary refs log tree commit diff stats
path: root/res
Commit message (Collapse)AuthorAgeFilesLines
...
* Separate gopher conversion from main binarybptato2023-12-101-1/+1
| | | | | | | | | | | | | | | | | | | | | Now we use a (much simplified) gopher2html binary in libexec, instead of converting gopher directories to HTML in loader/gopher. This has two advantages: * Less ugly conversion logic in the loader module; we can just convert the file line by line. (The previous converter also had some correctness issues, that is fixed now as well.) * If the user desires, they can replace the gopher converter with another binary using the mailcap mechanism. The disadvantages are: * For now, source display is broken. This is a problem with all mailcap filters in general, and should be fixed in the future. (That said, the previous version also only displayed the converted HTML source, which was not really useful anyway.) * The proper directory structure is required for this to work; OTOH plenty of work has been done so that this is as frictionless as possible, so it should not really be a problem.
* Enable finger protocol by defaultbptato2023-12-101-1/+1
| | | | | | * Add a default urimethodmap that points finger: to cha-finger * Install cha-finger to /usr/local/libexec/cha/cgi-bin by default * cha-finger: use ALL_PROXY if given, die if curl is not installed
* config: better path handling; fix array parsing bugbptato2023-12-101-0/+1
| | | | | | | | | * Paths are now parsed through an unified code path with some useful additions like environment variable substitution. * Fix a bug in parseConfigValue where strings would be appended to existing arrays (and not override them). * Fix beforeLast calling afterLast for some reason. * Add a default CGI directory.
* config: disable w3m-cgi-compat by defaultbptato2023-12-101-1/+1
| | | | | It was a bad idea to enable by default, as it is mostly pointless and is a potential security hole.
* pager: add marksbptato2023-12-092-0/+7
| | | | | Default is vi-style, but w3m-style marks work as well; see bonus/w3m.toml.
* pager: add precnum to [, ]bptato2023-12-091-2/+2
|
* pager: add `{', `}'; document externIntobptato2023-12-092-0/+3
| | | | | | | | { & } acts like in vi (except the cursor is not moved to the line beginning). No reason to leave externInto undocumented, as it is even used in the default config.
* pager, container: add text selection/copyingbptato2023-12-032-2/+22
| | | | | | | | | | * Add select & copy selection functionality to container * Fix bug in generateSwapOutput where output could be misplaced because of zero-width cells * Add fromJSPromise, call runJSJobs in every iteration of the headed event loop * "await" pager actions that output a promise * Change default view source keybinding to `\'
* ua.css: do not set del, ins display to block; strike delbptato2023-12-011-3/+3
|
* Update about:chawanbptato2023-11-231-1/+2
| | | | | * clarify search keybinding * list web search keybinding
* update chawan.htmlbptato2023-11-171-48/+60
|
* http: use Accept-Encodingbptato2023-11-171-0/+1
| | | | just ask libcurl to decode
* ua.css: add <s>, <strike>bptato2023-10-251-0/+4
|
* about:chawan: fix markupbptato2023-10-231-8/+8
|
* Refactor Consolebptato2023-10-131-2/+4
| | | | | * merge dom.console & client.Console * move client-specific stuff out of Console (into callbacks when necessary)
* chawan.html: add missing linebreakbptato2023-10-051-2/+2
| | | | needed to avoid the logo overwriting text
* config: do not copy url with newlinebptato2023-10-011-1/+1
|
* Add w3m-cgi-compat optionbptato2023-10-011-0/+1
|
* more vi/m compatbptato2023-10-012-10/+14
|
* Improve vi/m compat in scrollingbptato2023-10-012-3/+13
|
* Add urimethodmap supportbptato2023-09-301-0/+6
| | | | yay
* js: improve optional argument handlingbptato2023-09-261-18/+18
| | | | | | | If a fallback argument has been specified, treat undefined as if no argument had been given. This removes the need for the ?? 1 checks in the config.
* Add precnum support to more functionsbptato2023-09-261-11/+11
|
* Add M-p as "load page on clipboard"bptato2023-09-252-4/+18
|
* Add about:licensebptato2023-09-231-0/+116
|
* fix size for some input typesbptato2023-09-221-1/+2
| | | | | | padToWidth should be called for all input types in InputWithSize. Also, they should be underlined by ua.css.
* add arrow keys to default line edit configbptato2023-09-201-0/+4
|
* improve about:chawan pagebptato2023-09-201-17/+60
|
* config: fix invalid use of externbptato2023-09-131-1/+2
|
* container: accept numbers in cursorLeft, cursorRight, etc.bptato2023-09-091-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 functionsbptato2023-09-091-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-basedbptato2023-09-081-2/+4
| | | | | | | | * 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-081-1/+2
| | | | | 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.
* config: add gotoLine as M-gbptato2023-09-071-0/+1
|
* res: remove unused filesbptato2023-09-0135-79418/+0
| | | | These now live in separate repositories.
* config: allow modification through JSbptato2023-08-271-1/+4
| | | | | | | 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.
* Allow overriding default headersbptato2023-08-261-0/+7
|
* Add mailcap, mime.types & misc refactoringsbptato2023-08-132-0/+22
| | | | | | | | * 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
* ua.css: add parens to rt before and afterbptato2023-08-101-0/+8
| | | | | Forgot to add any replacement for rp after setting it to display: none, so parentheses around ruby text were not being displayed.
* Add default background/foreground color overridebptato2023-07-291-0/+2
|
* Add suspend() function (bound to C-z)bptato2023-07-261-0/+1
|
* ua.css: add more block elementsbptato2023-07-251-2/+4
| | | | Additions sourced from the HTML standard.
* Add popup menu for select elementbptato2023-07-051-7/+10
| | | | | | | 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.)
* Remove unused config variablebptato2023-06-261-1/+0
|
* Fix crash in openEditor if SIGINT was deliveredbptato2023-06-261-0/+1
| | | | | | | | | | | nvi for example sets ISIG and traps SIGINT. Without this patch, this would propagate to all processes in the same process group and kill them. (It still does, but we set a signalHandler to ignore that.) Still not perfect, because for some reason we receive WIFSIGNALED even if the signal did not actually kill the editor. For now, we just treat this as a success.
* Fix color U, slightly change contrast algorithmbptato2023-06-101-1/+1
|
* Fix some type confusion with colors, fix crash in pagerbptato2023-06-091-1/+1
|
* Add XTERM title renamingbptato2023-06-071-0/+1
|
* Add support for canvas and multipartbptato2023-06-051-0/+0
| | | | | | | | | | | | | | | Quite incomplete canvas implementation. Crucially, the layout engine can't do much with whatever is drawn because it doesn't support images yet. I've re-introduced multipart as well, with the FormData API. For the append function I've also introduced a hack to the JS binding generator that allows requesting the JSContext pointer in nim procs. Really I should just fix the union generator thing and add support for overloading. In conclusion, for now the only thing canvas can be used for is exporting it as PNG and uploading it somewhere. Also, we now have PNG encoding and decoding too. (Now if only we had sixels as well...)
* Set display-charset to autobptato2023-05-201-1/+1
|