about summary refs log tree commit diff stats
path: root/src/config/chapath.nim
Commit message (Collapse)AuthorAgeFilesLines
* pager: editor command fixesbptato2024-05-121-1/+2
|
* js: refactorbptato2024-05-081-1/+1
| | | | | | | * prefix to-be-separated modules with js * remove dynstreams dependency * untangle from EmptyPromise * move typeptr into tojs
* Update code stylebptato2024-04-171-58/+56
| | | | | | * separate params with ; (semicolon) instead of , (colon) * reduce screaming snake case use * wrap long lines
* main: refactor slightlybptato2024-03-211-0/+3
| | | | | | * put forkServer into main() * use a ctx type instead of closures * get rid of types/opt import
* config: clean up/simplifybptato2024-03-171-2/+2
| | | | | | | | | * Parse the default config at runtime. There's no significant performance difference, but this makes it much less painful to write config code. * Add better error reporting * Make fromJS2 easier to use * Unquote ChaPaths while parsing config
* cgi: fix broken libexec path env variablebptato2024-01-261-1/+1
|
* Add urlenc, urldec; fix a URL encoding bug; improve trans.cgibptato2024-01-081-1/+1
| | | | | | | | | | * 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
* chapath: add missing returnbptato2023-12-141-1/+2
|
* Separate gopher conversion from main binarybptato2023-12-101-0/+5
| | | | | | | | | | | | | | | | | | | | | 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/+286
* 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.