about summary refs log tree commit diff stats
path: root/doc/config.md
Commit message (Collapse)AuthorAgeFilesLines
* config: replace default-flags with ignore-casebptato2024-02-221-7/+7
| | | | | | default-flags was overly complicated for its purpose. Also, ignore-case is quite useful, so enable it by default.
* Update docsbptato2024-02-191-8/+37
|
* regex: re-work compileSearchRegexbptato2024-02-171-0/+10
| | | | | | | I've gotten tired of not being able to search for forward slashes. Now it works like in vim, and you can also set default ignore case in the config.
* term: fix coloring messbptato2024-02-171-4/+16
| | | | | | | | | | | | | | | | | | | | | | | | | Until now, the config file required manual adjustment for the output to look bearable on terminals colored differently than {bgcolor: black, fgcolor: white}. Also, it only detected RGB when COLORTERM was set, but this is not done by most (any?) terminal emulators (sad). To improve upon the situation, we now query the terminal for some attributes on startup: * OSC(10/11, ?) -> get the terminal's bg/fgcolor * DCS(+, q, 524742) -> XTGETTCAP for the "RGB" capability (only supported by a few terminals, but better than nothing) * Primary device attributes -> check if ANSI colors are supported, also make sure we don't block indefinitely even if the previous queries fail If primary device attributes does not return anything, we hang until the user types something, then notify the user that something went wrong, and tell them how to fix it. Seems like an OK fallback. (The DA1 idea comes from notcurses; since this is implemented by pretty much every terminal emulator, we don't have to rely on slow timing hacks to skip non-supported queries.)
* doc: update npr redirect examplebptato2024-02-141-1/+2
| | | | a bit more readable, and it also works with /[0-9]+ pathnames
* 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
* 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-191-25/+74
| | | | | | | | | | | | * 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.
* 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-151-35/+10
| | | | hopefully this works
* config: allow overriding default prepended schemebptato2023-12-151-2/+13
|
* doc/config: finish path handling documentationbptato2023-12-141-1/+5
|
* 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.
* 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
* container: add cursorNthLink, cursorRevNthLinkbptato2023-10-141-0/+11
|
* Add w3m-cgi-compat optionbptato2023-10-011-4/+19
|
* more vi/m compatbptato2023-10-011-12/+22
|
* Improve vi/m compat in scrollingbptato2023-10-011-2/+39
|
* update docsbptato2023-09-301-9/+21
|
* loader: add local-cgibptato2023-09-301-2/+30
| | | | | | | | | | | 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-201-3/+12
|
* 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-201-1/+5
| | | | still needs some work
* document pager.externbptato2023-09-201-0/+13
| | | | it's better than nothing, maybe?
* container: accept numbers in cursorLeft, cursorRight, etc.bptato2023-09-091-9/+9
| | | | | | These functions now take a numeric argument to determine how many cells/lines to move. Also, update the default config so e.g. 9j now works.
* Add vi-style numeric prefixes, make gotoLine 1-basedbptato2023-09-081-3/+62
| | | | | | | | * it is now possible to jump to the nth line by typing {n}G * gotoLine is now 1-based, so to go to the first line you would use pager.gotoLine(1) * it is now allowed to return a function from a keybinding (which will be subsequently executed as a regular keybinding)
* container: add separate commands for 0 and ^bptato2023-09-081-0/+5
| | | | | Just as in vi, 0 puts the cursor at the beginning of the current line, and ^ puts the cursor at the position of the first non-blank character.
* Allow overriding default headersbptato2023-08-261-0/+5
|
* Update docsbptato2023-08-131-0/+12
|
* Add default background/foreground color overridebptato2023-07-291-0/+12
|
* doc: add missing end tagbptato2023-07-261-1/+1
|
* Add suspend() function (bound to C-z)bptato2023-07-261-2/+20
|
* Add compileMatchRegexbptato2023-07-251-8/+34
| | | | | | | This makes it so that host = 'example\.org' mandates an exact match, but host = '^example' matches example.org, example.com, etc. (Previously, 'example\.org' would have matched exampleexample.org as well, which was quite counter-intuitive.)
* Improve encoding supportbptato2023-07-121-11/+13
| | | | | | | | * Use the output charset in lineedit (as w3m does) * encoder: fix broken UTF-8 encoding, use openArray instead of var seq for input queue * Add RuneStream as an in-memory interface to EncoderStream * Document display-charset config option
* Add proxy supportbptato2023-07-041-0/+13
|
* doc: fix typobptato2023-06-281-5/+5
|
* cookie sharing examplebptato2023-06-261-0/+7
|
* config: add stylesheet, apply siteconf to piped inputbptato2023-06-261-0/+10
|
* Add XTERM title renamingbptato2023-06-071-3/+11
|
* Fix more config inconsistenciesbptato2023-06-011-1/+13
| | | | So that the default config actually works again. Also some doc updates.