From 52826ae8183a1510c65aa63f5459f94c4d9ad4d7 Mon Sep 17 00:00:00 2001 From: T Date: Mon, 24 Mar 2025 21:15:22 -0600 Subject: complete documentation of config options, fix one option name --- README.gmi | 3 +++ files.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.gmi b/README.gmi index 4a7eebe..8bb102d 100644 --- a/README.gmi +++ b/README.gmi @@ -125,5 +125,8 @@ It has a "[main]" section with the following configuration options: * default_scheme (string): the URL scheme to use in the "go" command when none is provided. default "gemini" * soft_wrap (int): the number of columns to wrap, or -1 to not add soft wrapping. default 72 * download_folder (string): path at which to store files saved by the "save" command. default $HOME +* pager (string): whether to run the "less" pager ("auto", "always", or "never"). default "auto" +* timeout (string): how long to allow servers to take responding to requests, in go's duration formats. default "10s" +* saved_history_depth (int): how many items of history to keep. default 30 Then a "[handlers]" section contains mappings of mimetypes to shell commands which should be used to handle them. diff --git a/files.go b/files.go index f0b1ed2..da66cec 100644 --- a/files.go +++ b/files.go @@ -23,7 +23,7 @@ type ConfigMain struct { VimKeys bool `toml:"vim_keys"` Quiet bool `toml:"quiet"` Pager string `toml:"pager"` - Timeout duration `toml:"duration"` + Timeout duration `toml:"timeout"` SavedHistoryDepth int `toml:"saved_history_depth"` } -- cgit v1.2.3