summaryrefslogtreecommitdiff
path: root/README.gmi
diff options
context:
space:
mode:
authortjp <tjp@ctrl-c.club>2024-01-09 09:53:15 -0700
committertjp <tjp@ctrl-c.club>2024-01-09 09:53:15 -0700
commita44a063c1a60ca11066d21d49aca95cfed7d3499 (patch)
tree65bcb597fd77e27a2c93ca10ce06a0add80d9384 /README.gmi
parent15214b7c98cbe77bddb2a52e0849abdfa7953747 (diff)
mimetype handling
upon general navigation: 1. check for any configured handlers for the mimetype 2. normal printing for gophermap, gemtext, and text/plain 3. save the file to downloads folder
Diffstat (limited to 'README.gmi')
-rw-r--r--README.gmi5
1 files changed, 3 insertions, 2 deletions
diff --git a/README.gmi b/README.gmi
index 6511bc2..4a7eebe 100644
--- a/README.gmi
+++ b/README.gmi
@@ -119,10 +119,11 @@ On any other nagivation, this context is cleared and next/previous actions won't
The config file is located at XDG_DATA_HOME/x-1/config.toml. This is usually under .local/share in your home directory.
-It contains the following configuration options:
-
+It has a "[main]" section with the following configuration options:
* quiet (bool): disables automatic printing of pages upon navigation. default "false"
* vim_keys (bool): whether to activate vim keybindings for the readline prompt. default "true"
* 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
+
+Then a "[handlers]" section contains mappings of mimetypes to shell commands which should be used to handle them.