From a44a063c1a60ca11066d21d49aca95cfed7d3499 Mon Sep 17 00:00:00 2001 From: tjp Date: Tue, 9 Jan 2024 09:53:15 -0700 Subject: 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 --- README.gmi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'README.gmi') 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. -- cgit v1.2.3