about summary refs log tree commit diff stats
path: root/doc/cha-urimethodmap.5
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-10-28 20:08:09 +0100
committerbptato <nincsnevem662@gmail.com>2024-10-28 20:08:09 +0100
commit6c5922d5f0b2d9d7b6e4c39593c6892a65f74e54 (patch)
tree2485ae5f313f0dd017ba85e86404393e5945b470 /doc/cha-urimethodmap.5
parentbd4386923056c53e97f0865d846ef52d0666ca56 (diff)
downloadchawan-6c5922d5f0b2d9d7b6e4c39593c6892a65f74e54.tar.gz
config: refactor, accept more possible config dirs
I'm starting to favor dotfiles over XDG basedirs, but there's no reason
why we couldn't have both. So now the search path is:

0. if config was set through -C, use that
1. $CHA_CONFIG_DIR is set -> $CHA_CONFIG_DIR/config.toml
2. $XDG_CONFIG_HOME is set -> $XDG_CONFIG_HOME/chawan/config.toml
3. ~/.config/chawan/config.toml exists -> use that
4. ~/.chawan/config.toml exists -> use that

Notably, this makes it so the default directory is ~/.chawan *if* you
don't have an existing config.toml file. So in that case known_hosts
will be placed in ~/.chawan/known_hosts. However, configurations with a
config in ~/.config/chawan/config.toml continue to work as expected, as
for those the known_hosts file remains inside ~/.config/chawan/.

Finally, I've added a default user CGI directory to reduce friction in
setting CGI up. (Like known_hosts, it's also relative to whatever config
dir you have.)
Diffstat (limited to 'doc/cha-urimethodmap.5')
-rw-r--r--doc/cha-urimethodmap.54
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/cha-urimethodmap.5 b/doc/cha-urimethodmap.5
index 1347bcc0..015903ee 100644
--- a/doc/cha-urimethodmap.5
+++ b/doc/cha-urimethodmap.5
@@ -1,4 +1,4 @@
-.\" Automatically generated by Pandoc 3.4
+.\" Automatically generated by Pandoc 3.5
 .\"
 .TH "cha\-urimethodmap" "5" "" "" "URI method map support in Chawan"
 .SH URI method map support in Chawan
@@ -89,7 +89,7 @@ the user\[cq]s configuration.)
 # Following sets the urimethodmap search path to the path relative to the
 # configuration file. So if your configuration file is in
 # \[ti]/.config/chawan/config.toml, Chawan will use \[ti]/.config/chawan/urimethodmap.
-# in the same directory.
+# If it\[aq]s in \[ti]/.chawan/config.toml, then it uses \[ti]/.chawan/urimethodmap.
 [external]
 urimethodmap = \[dq]urimethodmap\[dq]
 .EE