about summary refs log tree commit diff stats
path: root/res
Commit message (Collapse)AuthorAgeFilesLines
* config.toml: C-c cancels setMark/gotoMark operationsbptato2024-02-121-3/+21
|
* widthconv: bugfixesbptato2024-02-111-1/+3
| | | | | | | * fix failed assertion on non-ha-column half-width chars followed by handakuten with text-transform: full-width * fix dquot full-width conversion * fix lone half-width han/dakuten conversion
* twtstr: misc refactoringsbptato2024-02-092-100/+93
| | | | | | * move out half width <-> full width converters * snake_case -> camelCase * improve toScreamingSnakeCase slicing
* about:license: fix typobptato2024-02-011-1/+1
|
* Add default md2html converterbptato2024-01-301-0/+1
|
* Add command to yank link under cursor (yc)bptato2024-01-292-1/+14
|
* Add mancha man page viewerbptato2024-01-262-1/+24
| | | | | | | | | | 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...
* charwidth: use ptint in controls calculationbptato2024-01-192-19/+19
| | | | int was incorrect
* about:chawan: fix some descriptionsbptato2024-01-191-2/+2
|
* Re-design word handling, add e, E, W, B, etc.bptato2024-01-191-2/+6
| | | | | | | | | | | | * 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.
* charwidth: use pre-generated map filebptato2024-01-043-0/+399
| | | | Also for reducing compilation time.
* idna: use pre-generated map file, misc changesbptato2024-01-042-0/+2637
| | | | | | | | | Speeds up compilation somewhat. Included in the repository because it's not that huge. misc changes: * use seq, not set for UCS-16 sets (it takes up less space) * remove unnecessary noSideEffects casts
* Add spartan supportbptato2024-01-031-0/+1
| | | | why not
* ua.css: add plaintextbptato2023-12-201-1/+1
|
* config: allow overriding default prepended schemebptato2023-12-151-1/+2
|
* Various fixesbptato2023-12-131-6/+6
| | | | | | | * Makefile: fix parallel build, add new binaries to install target * twtstr: split out libunicode-related stuff to luwrap * config: quote default gopher2html URL env var for unquote * adapter/: get rid of types/url dependency, use CURL url in all cases
* http: use CURLU for URLsbptato2023-12-131-2/+2
|
* Move http out of main binarybptato2023-12-131-0/+2
| | | | | | | | | | | | 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
* Move gopher to adapter/bptato2023-12-121-0/+12
| | | | Also, move default urimethodmap config to res.
* css: add case-insensitive matchingbptato2023-12-111-7/+7
| | | | Also case-sensitive, but for now that is the same as normal matching...
* css: add text-transformbptato2023-12-112-0/+158
| | | | | | | Probably not fully correct, but it's a good start. Includes proprietary extension -cha-half-width, which converts full-width characters to half-width ones.
* 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-092-0/+7
| | | | | 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-092-0/+3
| | | | | | | | { & } 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-032-2/+22
| | | | | | | | | | * 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 `\'
* ua.css: do not set del, ins display to block; strike delbptato2023-12-011-3/+3
|
* Update about:chawanbptato2023-11-231-1/+2
| | | | | * clarify search keybinding * list web search keybinding
* update chawan.htmlbptato2023-11-171-48/+60
|
* http: use Accept-Encodingbptato2023-11-171-0/+1
| | | | just ask libcurl to decode
* ua.css: add <s>, <strike>bptato2023-10-251-0/+4
|
* about:chawan: fix markupbptato2023-10-231-8/+8
|
* Refactor Consolebptato2023-10-131-2/+4
| | | | | * merge dom.console & client.Console * move client-specific stuff out of Console (into callbacks when necessary)
* chawan.html: add missing linebreakbptato2023-10-051-2/+2
| | | | needed to avoid the logo overwriting text
* 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-012-10/+14
|
* Improve vi/m compat in scrollingbptato2023-10-012-3/+13
|
* 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-252-4/+18
|
* Add about:licensebptato2023-09-231-0/+116
|
* fix size for some input typesbptato2023-09-221-1/+2
| | | | | | padToWidth should be called for all input types in InputWithSize. Also, they should be underlined by ua.css.
* add arrow keys to default line edit configbptato2023-09-201-0/+4
|
* improve about:chawan pagebptato2023-09-201-17/+60
|
* config: fix invalid use of externbptato2023-09-131-1/+2
|