about summary refs log tree commit diff stats
path: root/src/config/mailcap.nim
Commit message (Collapse)AuthorAgeFilesLines
* Various refactorings & fixesbptato2024-02-141-4/+3
| | | | | | | | * disallow Stream interface usage on non-blocking PosixStreams * do not read estream of forkserver byte-by-byte (it's slow) * do not call writeData with a zero len in formdata * do not quote numbers in mailcap quoteFile * remove some unused stuff
* config: append */* rule instead of prependingbptato2024-01-301-8/+0
| | | | | | + actually use the result. Fixes default converters when no external mailcap exists.
* Use std/* imports everywherebptato2024-01-071-3/+3
|
* twtstr: remove tolower, isWhitespacebptato2023-11-201-3/+3
| | | | | | | | * tolower: strutils toLowerAscii is good enough for the cases where we need it. Also, it's easy to confuse with unicode toLower and vice versa. * isWhitespace: in AsciiWhitespace is more idiomatic. Also has a naming collision with unicode toLower.
* mailcap: fix regressionbptato2023-09-161-1/+1
| | | | not that this code path is ever executed
* mailcap: unquoteCommand improvements/fixesbptato2023-09-161-34/+57
| | | | | | | | * quote substituted URLs, mime types and named attributes too * change quote state: now we use a stack of quote states, new states are pushed/popped when a process substitution is encountered * fix named attribute state (it was incomplete) * remove superfluous tolower statements
* mailcap: allow whitespace after subtypebptato2023-09-161-1/+1
|
* move around more modulesbptato2023-09-141-1/+1
| | | | | | | | | | * ips -> io/ * loader related stuff -> loader/ * tempfile -> extern/ * buffer, forkserver -> server/ * lineedit, window -> display/ * cell -> types/ * opt -> types/
* mailcap: fix newline parsingbptato2023-08-261-1/+1
| | | | skipBlanks should not consume newlines.
* Move charsets into chakasubptato2023-08-141-1/+2
| | | | Operation "modularize Chawan somewhat" part 1
* Simplify mailcap entry matchingbptato2023-08-131-25/+14
|
* Add mailcap, mime.types & misc refactoringsbptato2023-08-131-0/+342
* 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