about summary refs log tree commit diff stats
path: root/bonus
Commit message (Collapse)AuthorAgeFilesLines
* magnet.cgi: use urldec from libexec dirbptato2024-02-111-16/+6
|
* Re-design word handling, add e, E, W, B, etc.bptato2024-01-191-1/+1
| | | | | | | | | | | | * 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.
* cha-http-libfetch: fix incorrect usage of strncatbptato2024-01-111-14/+3
| | | | | | | strncat does not work like that :P Luckily, BSD has strlcat which does. (While we're at it, remove the unused PDIE macro.)
* Add urlenc, urldec; fix a URL encoding bug; improve trans.cgibptato2024-01-081-12/+20
| | | | | | | | | | * 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
* bonus: add libfetch HTTP backendbptato2023-12-142-0/+163
| | | | | | | It has roughly zero utility, but maybe it's a good demonstration of local CGI? (TODO: add libfetch FTP too, that might actually be useful.)
* bonus: add magnet.cgibptato2023-12-112-0/+78
|
* Add support for gemini by default, update readmebptato2023-12-106-947/+0
| | | | | No need to leave gemini support in the bonus folder. Still TODO: proxy support.
* Enable finger protocol by defaultbptato2023-12-101-37/+0
| | | | | | * 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
* pager: add marksbptato2023-12-091-1/+29
| | | | | Default is vi-style, but w3m-style marks work as well; see bonus/w3m.toml.
* gmifetch: fix uninitialized memory access & UAFbptato2023-11-171-10/+9
| | | | C is scary
* gmi2html: fix main signaturebptato2023-11-171-1/+1
|
* gmifetch: do not decode URLs from query stringbptato2023-11-171-2/+0
|
* cha-finger: bugfixesbptato2023-11-171-10/+3
| | | | | | * Accept port 79, not 73 * Accept ipv6 addresses * We no longer have to URL decode the input
* bonus: add finger adapterbptato2023-11-141-0/+44
| | | | sort of based on lynx's finger URL parsing, except it's dumber
* gmifetch: properly set minimum TLS version, include string.hbptato2023-11-011-4/+2
| | | | | | | * Setting minimum TLS versions by SSL_CTX_set_options is deprecated, and we were doing it wrong anyway. Use SSL_CTX_set_min_proto_version instead. * Include string.h header to reduce clang whining.
* gmifetch: fix bugsbptato2023-10-291-10/+19
| | | | | | | * fix invalid file pointer being used after adding certificate (a pointer deref was missing there) * fix compatibility with gemini servers that refuse to interpret URLs that contain the default port (yes, seriously)
* container: add cursorNthLink, cursorRevNthLinkbptato2023-10-141-15/+2
|
* trans.cgi: minor fixbptato2023-10-091-1/+1
|
* update w3m.tomlbptato2023-10-091-26/+39
|
* improve trans.cgibptato2023-10-091-5/+23
| | | | document, simplify, ...
* gmifetch: get rid of globalsbptato2023-10-091-39/+43
| | | | it was horrible code style... (gmifetch still kind of is :/)
* gmifetch: -O3bptato2023-10-091-1/+1
|
* gmifetch: fix buffer overflowbptato2023-10-081-1/+1
| | | | ew
* Add urimethodmap supportbptato2023-09-307-0/+952
| | | | yay
* 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.
* w3m.toml: fix quitbptato2023-02-051-2/+2
|
* Add ask()bptato2023-01-051-1/+1
|
* pager: proxy values in container; js: bugfixesbptato2022-12-201-0/+77
| | | | Also, a little bonus: w3m keybindings
* Update config and config docsbptato2022-12-131-15/+0
|
* Add all sorts of config options and cookiesbptato2022-12-131-0/+15