about summary refs log tree commit diff stats
path: root/doc
Commit message (Collapse)AuthorAgeFilesLines
* Add pager.externFilterSourcebptato2024-02-121-3/+24
| | | | useful for filtering stuff through commands like rdrview
* doc/config: add missing backtickbptato2024-01-301-1/+1
|
* doc: do not emphasize th text, mention pager.locationbptato2024-01-301-33/+38
|
* Add command to yank link under cursor (yc)bptato2024-01-291-4/+14
|
* client: stop entire process group on suspend()bptato2024-01-291-2/+3
| | | | | * pass 0 so e.g. git does not hang * use sigtstp so e.g. cgi scripts can clean up if needed
* Add mancha man page viewerbptato2024-01-263-5/+62
| | | | | | | | | | derived from w3mman2html.cgi, there are only a few minor differences: * different man page opener command * use man:, man-k:, man-l: instead of query string to specify action * no form input (C-lC-uman:pageC-m is faster anyway) TODO rewrite in Nim so we don't have to depend on Perl...
* doc: fix cookie sharing examplebptato2024-01-221-4/+4
| | | | This configuration scheme really is a nightmare to use :(
* Re-design word handling, add e, E, W, B, etc.bptato2024-01-192-26/+75
| | | | | | | | | | | | * Add functions for moving to the beginning/end of words (vi `b', `e'). * As it turns out, there are many possible interpretations of what a word is. Now we have a function for each reasonable interpretation, and the default settings match those of vi (and w3m in w3m.toml). (Exception: it's still broken on line boundaries... TODO) * Remove `bounds` from lineedit, it was horrible API design and mostly useless. In the future, an API similar to what pager now has could be added. * Update docs, and fix some spacing issues with symbols in the tables.
* Add urlenc, urldec; fix a URL encoding bug; improve trans.cgibptato2024-01-081-0/+15
| | | | | | | | | | * Fix incorrect internal definition of the fragment percent-encode set * urlenc, urldec: these are simple utility programs mainly for use with shell local CGI scripts. (Sadly the printf + xargs solution is not portable.) * Pass libexec directory as an env var to local CGI scripts * Update trans.cgi to use urldec and add an example for combining it with selections
* Add spartan supportbptato2024-01-031-0/+12
| | | | why not
* fix broken linkbptato2023-12-221-1/+1
|
* update doc/protocolsbptato2023-12-221-3/+3
|
* cgi: return ConnectionError when script is not executablebptato2023-12-211-5/+5
|
* container: fix gotoMarkYbptato2023-12-211-2/+2
| | | | | | Now it actually does what it was supposed to do. Also, clarify what it does in config.md
* Fix for sourcehut markdown parsing, small doc improvementsbptato2023-12-156-60/+25
| | | | hopefully this works
* Add doc/protocolsbptato2023-12-151-0/+149
|
* config: allow overriding default prepended schemebptato2023-12-151-2/+13
|
* doc/config: finish path handling documentationbptato2023-12-141-1/+5
|
* Update doc/localcgibptato2023-12-141-3/+4
| | | | | multipart through local CGI is now supported as well. (also, fix Cha-Control description inaccuracy)
* Move http out of main binarybptato2023-12-131-5/+28
| | | | | | | | | | | | Now it is (technically) no longer mandatory to link to libcurl. Also, Chawan is at last completely protocol and network backend agnostic :) * Implement multipart requests in local CGI * Implement simultaneous download of CGI data * Add REQUEST_HEADERS env var with all headers * cssparser: add a missing check in consumeEscape
* local CGI improvements, move data: to cgi-binbptato2023-12-121-2/+41
| | | | error codes are WIP, not final yet...
* local CGI: add mapped URI env vars; move about: to adaptersbptato2023-12-121-0/+27
| | | | | | | | | | | | | | | * Add MAPPED_URI_* as environment variables when a request is coming from urimethodmap It costs us compatibility with w3m, but it seems to be a massive improvement over smuggling in the URL as a query string and then writing an ad-hoc parser for every single urimethodmap script. The variables are set for every urimethodmap request, to avoid accidental leaking of global environment variables. * Move about: to adapters (an obvious improvement over the previous solution)
* doc/localcgi: reword/clarifybptato2023-12-111-1/+5
|
* mailcap: add $MAILCAP_URLbptato2023-12-101-4/+23
| | | | | | This is better than %u as it is backwards compatible (i.e. does not rely on other user agents doing whatever upon encountering an unknown substitution template.)
* Separate gopher conversion from main binarybptato2023-12-101-1/+6
| | | | | | | | | | | | | | | | | | | | | 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.
* config: better path handling; fix array parsing bugbptato2023-12-101-0/+15
| | | | | | | | | * 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.
* pager: add marksbptato2023-12-091-0/+56
| | | | | Default is vi-style, but w3m-style marks work as well; see bonus/w3m.toml.
* pager: add `{', `}'; document externIntobptato2023-12-091-0/+18
| | | | | | | | { & } 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.
* Makefile: rewritebptato2023-11-281-0/+48
| | | | | | | * Get rid of useless targets * Use real recipes instead of command runner targets * When given, use environment variables * Document Makefile stuff in doc/build.md
* doc: fix typobptato2023-11-261-1/+1
|
* config: add bare aliases for "8bit", "24bit"bptato2023-11-261-3/+7
| | | | | | | | | | | Without this, setting color-mode using -o required quoting the values, and then shell-quoting the quotes themselves (cha -o 'display-color-mode="24bit"'). Instead of more special casing in the TOML parser, we just add aliases for these enum values that can be parsed using TOML bare string rules. So now this works: cha -o display.color-mode=true-color
* Update readmebptato2023-11-231-0/+0
| | | | | | * add showcase picture * add link to sourcehut project page (until sourcehut adds one) * add example usage
* urimethodmap: do not escape substituted URIbptato2023-11-171-2/+4
| | | | This is consistent with what w3m does and is way more convenient.
* Add -C optionbptato2023-10-271-27/+31
|
* manpage: fix incorrect infobptato2023-10-261-1/+1
|
* container: add cursorNthLink, cursorRevNthLinkbptato2023-10-141-0/+11
|
* slightly refactor md to man preprocessing, update manpagebptato2023-10-131-3/+4
|
* Add w3m-cgi-compat optionbptato2023-10-012-6/+36
|
* more vi/m compatbptato2023-10-011-12/+22
|
* Improve vi/m compat in scrollingbptato2023-10-011-2/+39
|
* update docsbptato2023-09-302-11/+25
|
* Add urimethodmap supportbptato2023-09-302-1/+140
| | | | yay
* loader: add local-cgibptato2023-09-303-3/+143
| | | | | | | | | | | Add w3m-style local CGI support. It is not quite as powerful as w3m's local CGI, because it lacks an equivalent to W3m-control. Not sure if it's worth adding; we certainly shouldn't allow passing JS in headers, but a custom language for headers does not sound like a great idea either... eh, idk. also, TODO add multipart
* Add precnum support to more functionsbptato2023-09-261-12/+12
|
* Add M-p as "load page on clipboard"bptato2023-09-251-0/+8
|
* improve manpagesbptato2023-09-204-11/+55
|
* update configbptato2023-09-201-2/+2
| | | | 8-bit colors are now supported
* config.md: more preprocessingbptato2023-09-201-1/+1
|
* add table_rewrite.shbptato2023-09-201-2/+2
| | | | | | pandoc can only generate manpage tables from markdown tables, but the markdown pipe table syntax is horrible. So instead of rewriting our markdown documentation to use that syntax, just programmatically rewrite it.
* add manpagesbptato2023-09-202-1/+128
| | | | still needs some work