From 672ab553c4a2b10a703ea40e049eda52db149a93 Mon Sep 17 00:00:00 2001 From: bptato Date: Tue, 13 Dec 2022 13:08:33 +0100 Subject: Add more cookie options --- doc/config.md | 38 +++++++++++++++++++++++++------------- 1 file changed, 25 insertions(+), 13 deletions(-) (limited to 'doc/config.md') diff --git a/doc/config.md b/doc/config.md index 47ac9f99..4879621d 100644 --- a/doc/config.md +++ b/doc/config.md @@ -1,7 +1,7 @@ # Configuration Chawan supports custom keybindings and user stylesheets. The configuration -format is similar to the toml format, with the following exceptions: +format is very similar to the toml format, with the following exceptions: * Table arrays can be cleared like this: ``` @@ -9,7 +9,8 @@ omnirule = [] [[omnirule]] # this is accepted ``` -This allows users to disable default array rules. +This allows users to disable default table array rules. Note that these +declarations must be placed at the beginning of the file. * Inline tables may span across multiple lines. Rationale: the toml specified behavior is counter-intuitive. @@ -112,9 +113,7 @@ Network options are to be placed in the `[network]` section. max-redirect number -Set the color mode. "auto" for automatic detection, "monochrome" -for black on white, "ansi" for ansi colors, "24bit" for true colors. "8bit" -is currently unimplemented (and falls back to ansi). +Maximum number of redirections to follow. @@ -258,7 +257,7 @@ placed in the table array `[[siteconf]]`. Examples: ``` -# Enable cookies on the orange website, to make log-in work. +# Enable cookies on the orange website for log-in. [[siteconf]] url = "^https://news.ycombinator.com/.*" cookie = true @@ -309,9 +308,22 @@ it will replace the old one. cookie boolean -Whether loading cookies should be allowed for this domain. Note: for now, -third-party cookies are always blocked. A third-party cookie setting may be -added in the future. +Whether loading cookies should be allowed for this URL. By default, this is +false for all websites. + + + +third-party-cookie +regex/array of regexes +Domains for which third-party cookies are allowed on this domain. Note: +this only works for buffers which share the same cookie jar. + + + +share-cookie-jar +host +Cookie jar to use for this domain. Useful for e.g. sharing cookies with +subdomains. @@ -412,12 +424,12 @@ is typed in. A list of built-in pager functions can be found below. `line.delete()`Delete character after cursor `line.clear()`Clear text before cursor `line.kill()`Clear text after cursor -`line.clearWord(bounds)`Delete word before cursor[^a] -`line.killWord(bounds)`Delete word after cursor[^a] +`line.clearWord(bounds)`Delete word before cursor +`line.killWord(bounds)`Delete word after cursor `line.backward()`Move cursor back by one character `line.forward()`Move cursor forward by one character -`line.prevWord(bounds)`Move cursor to the previous word by one character[^a] -`line.nextWord(bounds)`Move cursor to the previous word by one character[^a] +`line.prevWord(bounds)`Move cursor to the previous word by one character +`line.nextWord(bounds)`Move cursor to the previous word by one character `line.begin()`Move cursor to the previous word by one character `line.end()`Move cursor to the previous word by one character `line.escape()`Ignore keybindings for next character -- cgit 1.4.1-2-gfad0