1
0
mirror of https://github.com/makew0rld/amfora.git synced 2024-11-03 02:37:23 -05:00
amfora/config/default.go

39 lines
1.6 KiB
Go
Raw Normal View History

2020-06-18 16:54:48 -04:00
package config
//go:generate ./default.sh
var defaultConf = []byte(`# This is the default config file.
# It also shows all the default values, if you don't create the file.
2020-06-20 17:17:34 -04:00
# All URL values may omit the scheme and/or port, as well as the beginning double slash
# Valid URL examples:
# gemini://example.com
# //example.com
# example.com
# example.com:123
2020-06-18 16:54:48 -04:00
[a-general]
home = "gemini://gemini.circumlunar.space"
2020-06-20 17:17:34 -04:00
2020-06-18 16:54:48 -04:00
# What command to run to open a HTTP URL. Set to "default" to try to guess the browser,
# or set to "off" to not open HTTP URLs.
# If a command is set, than the URL will be added (in quotes) to the end of the command.
# A space will be prepended if necessary.
http = "default"
search = "gemini://gus.guru/search" # Any URL that will accept a query string can be put here
color = true # Whether colors will be used in the terminal
bullets = true # Whether to replace list asterisks with unicode bullets
# A number from 0 to 1, indicating what percentage of the terminal width the left margin should take up.
left_margin = 0.15
max_width = 100 # The max number of columns to wrap a page's text to. Preformatted blocks are not wrapped.
# 'downloads' is the path to a downloads folder.
# An empty value means the code will find the default downloads folder for your system.
2020-07-09 19:28:39 -04:00
# If the path does not exist it will be created.
downloads = ""
2020-06-18 16:54:48 -04:00
# Options for page cache - which is only for text/gemini pages
# Increase the cache size to speed up browsing at the expense of memory
[cache]
# Zero values mean there is no limit
max_size = 0 # Size in bytes
2020-06-20 17:17:34 -04:00
max_pages = 30 # The maximum number of pages the cache will store
2020-06-18 16:54:48 -04:00
`)