about summary refs log tree commit diff stats
path: root/src/config
Commit message (Collapse)AuthorAgeFilesLines
* Move charsets into chakasubptato2023-08-142-2/+4
| | | | Operation "modularize Chawan somewhat" part 1
* mimetypes: small optimizationbptato2023-08-131-2/+1
|
* Simplify mailcap entry matchingbptato2023-08-131-25/+14
|
* Do not replace existing mime typesbptato2023-08-131-1/+2
| | | | | Make mime.types behavior consistent with mailcap: that is, the *first* match counts.
* Add mailcap, mime.types & misc refactoringsbptato2023-08-133-12/+441
| | | | | | | | * 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
* Fixes & workarounds to compile on Nim 2.0.0bptato2023-08-011-1/+1
| | | | | | | | | | | | | | * Import punycode, as it has been removed from stdlib. * Fix some syntax errors * Apparently you can no longer compare distinct pointers with nil. Add explicit comparisons with typeof(nil) instead. * htmlparser: rename _ to other, as semantics of _ have changed. (Quite a shame, it looked better with _. Oh well.) * Explicitly specify mm:refc, as the browser OOMs with orc for some reason. Confirmed to compile & run on 2.0.0, 1.6.14, 1.6.12, 1.6.10 and 1.6.8. (<1.6.8 it's broken & wontfix.)
* Add default background/foreground color overridebptato2023-07-291-0/+11
|
* Add compileMatchRegexbptato2023-07-251-4/+4
| | | | | | | This makes it so that host = 'example\.org' mandates an exact match, but host = '^example' matches example.org, example.com, etc. (Previously, 'example\.org' would have matched exampleexample.org as well, which was quite counter-intuitive.)
* Add proxy supportbptato2023-07-041-2/+22
|
* return Result[T, JSError] from fromJSbptato2023-07-021-6/+4
|
* Factor out headers into separate modulebptato2023-07-011-1/+1
|
* use =destroy instead of finalizersbptato2023-07-011-0/+2
| | | | | This should help with moving to ORC in the future. (Also, finalizers do not work very well in the first place.)
* config: add stylesheet, apply siteconf to piped inputbptato2023-06-261-5/+6
|
* 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.
* Option -> Opt in config, return error in compileSearchRegexbptato2023-06-241-36/+36
|
* Rework JS exception systembptato2023-06-191-2/+2
| | | | | Now we use Result for passing exceptions to JS. As a result, we can finally get rid of the .jserr pragma.
* Use utils/opt in toml parserbptato2023-06-182-150/+140
|
* Fix various layout bugs, prepare for image supportbptato2023-06-121-3/+9
|
* Add XTERM title renamingbptato2023-06-071-0/+1
|
* Add support for canvas and multipartbptato2023-06-051-1/+3
| | | | | | | | | | | | | | | 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...)
* Fix more config inconsistenciesbptato2023-06-011-22/+23
| | | | So that the default config actually works again. Also some doc updates.
* config: fix omnirulesbptato2023-06-011-3/+3
| | | | Rename variable so it's mapped properly...
* Rewrite new Request bindingbptato2023-05-211-3/+3
| | | | | Still far from perfect, but now at least it has a bit more to do with what the standard mandates.
* Add display/output encodingbptato2023-05-191-15/+5
| | | | Some encodings are still missing
* make it compile...bptato2023-05-161-1/+1
|
* Refactor config, add charset optsbptato2023-05-162-200/+299
| | | | Only document-charset supported for now.
* pager: proxy values in container; js: bugfixesbptato2022-12-201-6/+12
| | | | Also, a little bonus: w3m keybindings
* Add JS support to documentsbptato2022-12-181-4/+10
|
* Fix searchbptato2022-12-141-1/+2
|
* Add referer support, re-render on windowChangebptato2022-12-131-8/+30
|
* Add more cookie optionsbptato2022-12-131-2/+16
|
* Add network.max-redirect, prepend-https optionsbptato2022-12-131-0/+9
|
* Update config and config docsbptato2022-12-132-10/+66
|
* Add all sorts of config options and cookiesbptato2022-12-132-13/+103
|
* Fix color contrast correctionbptato2022-12-121-5/+2
| | | | | Instead of just inverting the color and hoping for the best, convert it to YUV and increase/decrease luminance based on results.
* Add urlfilterbptato2022-12-121-1/+5
|
* Add visual-home, rename undocumented config valuesbptato2022-12-111-4/+10
|
* Add multiple text-decoration, overline emulationbptato2022-12-071-11/+18
|
* Add force-clearbptato2022-12-071-0/+2
|
* Add siteconf, fix lineedit bugsbptato2022-11-292-9/+83
| | | | | | This enables rule-based dynamic url rewriting. Also, lineedit is a bit less broken now (though it's still less than ideal.)
* Add textareabptato2022-11-282-7/+26
| | | | Editing is implemented using an external editor (like vi).
* Improve status messages, fix regressions, etcbptato2022-11-253-2/+2
|
* Fix user style regression, add minimum-contrastbptato2022-11-252-3/+10
|
* Buffer improvementsbptato2022-11-251-4/+3
|
* Avoid forking child processes from the main processbptato2022-11-241-1/+0
| | | | Caveat: this breaks piped streams.
* Add alt-screen option, fix an ansi color bugbptato2022-11-211-0/+6
|
* Color & term improvementsbptato2022-11-211-37/+61
|
* Incremental loading of text files, etc.bptato2022-11-202-1/+11
|
* Re-implement highlightingbptato2022-11-191-12/+12
|