about summary refs log tree commit diff stats
path: root/res/config.toml
Commit message (Collapse)AuthorAgeFilesLines
* config: allow overriding default prepended schemebptato2023-12-151-1/+2
|
* 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-091-0/+4
| | | | | 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-091-0/+2
| | | | | | | | { & } 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-031-1/+18
| | | | | | | | | | * 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 `\'
* http: use Accept-Encodingbptato2023-11-171-0/+1
| | | | just ask libcurl to decode
* Refactor Consolebptato2023-10-131-2/+4
| | | | | * merge dom.console & client.Console * move client-specific stuff out of Console (into callbacks when necessary)
* 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-011-9/+13
|
* Improve vi/m compat in scrollingbptato2023-10-011-2/+10
|
* 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-251-4/+16
|
* add arrow keys to default line edit configbptato2023-09-201-0/+4
|
* 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
|
* 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-131-0/+12
| | | | | | | | * 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
* Add default background/foreground color overridebptato2023-07-291-0/+2
|
* Add suspend() function (bound to C-z)bptato2023-07-261-0/+1
|
* 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
|
* Set display-charset to autobptato2023-05-201-1/+1
|
* Refactor config, add charset optsbptato2023-05-161-1/+6
| | | | Only document-charset supported for now.
* res/config: fix M-c console bindingbptato2023-01-201-4/+1
|
* res/config, doc/config: encode search query stringsbptato2023-01-081-1/+1
|
* Slightly refactor commandModebptato2023-01-061-1/+7
|
* default config: make the search function slightly more robustbptato2022-12-251-1/+1
| | | | For easier copy-pasting...
* pager: proxy values in container; js: bugfixesbptato2022-12-201-1/+5
| | | | Also, a little bonus: w3m keybindings
* Update visual home page, use name consistentlybptato2022-12-161-1/+1
|
* Add discardTree, update docsbptato2022-12-151-2/+2
|
* Add network.max-redirect, prepend-https optionsbptato2022-12-131-0/+4
|
* Update config and config docsbptato2022-12-131-7/+3
|
* Add wikipedia substitution, bookmark file keybindingbptato2022-12-111-0/+5
|
* Add visual-home, rename undocumented config valuesbptato2022-12-111-0/+5
|
* Fix container replacement bugsbptato2022-12-111-1/+1
|