Herramientas de usuario

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

Próxima revisión
Revisión previa
config.toml [2021/12/07 02:31] – creado peronconfig.toml [2026/04/21 16:05] (actual) – editor externo 127.0.0.1
Línea 1: Línea 1:
-<code> +<code toml
-This is the default config file.+Este es el fichero de configuración de amfora por defecto.
 # It also shows all the default values, if you don't create the file. # It also shows all the default values, if you don't create the file.
 # You can edit this file to set your own configuration for Amfora. # You can edit this file to set your own configuration for Amfora.
 + 
 # When Amfora updates, defaults may change, but this file on your drive will not. # When Amfora updates, defaults may change, but this file on your drive will not.
 # You can always get the latest defaults on GitHub. # You can always get the latest defaults on GitHub.
 # https://github.com/makeworld-the-better-one/amfora/blob/master/default-config.toml # https://github.com/makeworld-the-better-one/amfora/blob/master/default-config.toml
- +  
-Please also check out the Amfora Wiki for more help+Por favor consulta la Amfora Wiki para mas ayuda
 # https://github.com/makeworld-the-better-one/amfora/wiki # https://github.com/makeworld-the-better-one/amfora/wiki
 # gemini://makeworld.space/amfora-wiki/ # gemini://makeworld.space/amfora-wiki/
- +  
- +  
- +  
-All URL values may omit the scheme and/or port, as well as the beginning double slash +Todos los valores URL pueden omitir esquema y puerto 
-Valid URL examples+Ejemplos válidos
-# gemini://example.com +# gemini://ejemplo.com 
-# //example.com +# //ejemplo.com 
-example.com +ejemplo.com 
-example.com:123 +ejemplo.com:123 
- +  
 + 
 [a-general] [a-general]
-Press Ctrl-H to access it +Presiona Ctrl-H para acceder 
-home = "gemini://gemini.circumlunar.space+home = "gemini://texto-plano.xyz
- +  
-Follow up to 5 Gemini redirects without prompting+Sigue hasta redirecciones Gemini sin preguntar
-A prompt is always shown after the 5th redirect and for redirects to protocols other than Gemini. +Aparecerá una pregunta siempre de la 5ta redirección y para redirecciones a protocolos distintos a Gemini. 
-If set to false, a prompt will be shown before following redirects.+Si está en false, aparecerá la pregunta antes de redirigir.
 auto_redirect = false auto_redirect = false
 + 
 # What command to run to open a HTTP(S) URL. # What command to run to open a HTTP(S) URL.
 # Set to "default" to try to guess the browser, or set to "off" to not open HTTP(S) URLs. # Set to "default" to try to guess the browser, or set to "off" to not open HTTP(S) URLs.
Línea 38: Línea 38:
 # The best to define a command is using a string array. # The best to define a command is using a string array.
 # Examples: # Examples:
-# http = ['firefox']+# http = ['lynx']
 # http = ['custom-browser', '--flag', '--option=2'] # http = ['custom-browser', '--flag', '--option=2']
 # http = ['/path/with spaces/in it/firefox'] # http = ['/path/with spaces/in it/firefox']
Línea 45: Línea 45:
 # Using just a string will also work, but it is deprecated, and will degrade if # Using just a string will also work, but it is deprecated, and will degrade if
 # you use paths with spaces. # you use paths with spaces.
- +  
-http = 'default+#http = 'gemini://texto-plano.xyz/
- +  
-Any URL that will accept a query string can be put here+Cualquier URL que acepte solicitudes con una cadena de texto puede colocarse como buscador
 search = "gemini://geminispace.info/search" search = "gemini://geminispace.info/search"
- +  
-Whether colors will be used in the terminal+Si se usarán colores en la terminal
 color = true color = true
 + 
 # Whether ANSI color codes from the page content should be rendered # Whether ANSI color codes from the page content should be rendered
 ansi = true ansi = true
- +  
-Whether to replace list asterisks with unicode bullets+Si se reemplazarán los astericos con bullets unicode
 bullets = true bullets = true
- +  
-Whether to show link after link text+Si se muestra en enlace después del texto de enlace
 show_link = false show_link = false
- +  
-A number from 0 to 1, indicating what percentage of the terminal width the left margin should take up.+Número entre 0 to 1, que indica porcentaje de márgen izquierdo.
 left_margin = 0.15 left_margin = 0.15
 + 
 # The max number of columns to wrap a page's text to. Preformatted blocks are not wrapped. # The max number of columns to wrap a page's text to. Preformatted blocks are not wrapped.
 max_width = 100 max_width = 100
 + 
 # 'downloads' is the path to a downloads folder. # 'downloads' is the path to a downloads folder.
 # An empty value means the code will find the default downloads folder for your system. # An empty value means the code will find the default downloads folder for your system.
Línea 74: Línea 74:
 # Note the use of single quotes, so that backslashes will not be escaped. # Note the use of single quotes, so that backslashes will not be escaped.
 downloads = '' downloads = ''
 + 
 # Max size for displayable content in bytes - after that size a download window pops up # Max size for displayable content in bytes - after that size a download window pops up
 page_max_size = 2097152  # 2 MiB page_max_size = 2097152  # 2 MiB
 # Max time it takes to load a page in seconds - after that a download window pops up # Max time it takes to load a page in seconds - after that a download window pops up
 page_max_time = 10 page_max_time = 10
- +  
-When a scrollbar appears. "never", "auto", and "always" are the only valid values+Cuando aparece la barra de desplazamiento. "never", "auto", "always" son válidos
-# "auto" means the scrollbar only appears when the page is longer than the window.+# "auto" hace que solo aparezca cuando se necesita.
 scrollbar = "auto" scrollbar = "auto"
- +  
-Underline non-gemini URLs+Subrayar URLs no-gemini
 # This is done to help color blind users # This is done to help color blind users
 underline = true underline = true
- +  
 + 
 [auth] [auth]
 # Authentication settings # Authentication settings
 # Note the use of single quotes for values, so that backslashes will not be escaped. # Note the use of single quotes for values, so that backslashes will not be escaped.
 + 
 [auth.certs] [auth.certs]
 # Client certificates # Client certificates
 # Set domain name equal to path to client cert # Set domain name equal to path to client cert
 # "example.com" = 'mycert.crt' # "example.com" = 'mycert.crt'
 + 
 [auth.keys] [auth.keys]
 # Client certificate keys # Client certificate keys
 # Set domain name equal to path to key for the client cert above # Set domain name equal to path to key for the client cert above
 # "example.com" = 'mycert.key' # "example.com" = 'mycert.key'
- +  
 + 
 [keybindings] [keybindings]
-If you have a non-US keyboard, use bind_tab1 through bind_tab0 to +Si tiene teclado español, use de bind_tab1 bind_tab0 para 
-setup the shift-number bindings: Eg, for US keyboards (the default)+configurar los bindings de mayúsculas+número. Está para español
-bind_tab1 = "!" +bind_tab1 = "!" 
-bind_tab2 = "@" +bind_tab2 = '"' 
-bind_tab3 = "#+bind_tab3 = "·
-bind_tab4 = "$" +bind_tab4 = "$" 
-bind_tab5 = "%" +bind_tab5 = "%" 
-bind_tab6 = "^+bind_tab6 = "&
-bind_tab7 = "&+bind_tab7 = "/
-bind_tab8 = "*+bind_tab8 = "(
-bind_tab9 = "(+bind_tab9 = ")
-bind_tab0 = ")+bind_tab0 = "=
 + 
 # Whitespace is not allowed in any of the keybindings! Use 'Space' and 'Tab' to bind to those keys. # Whitespace is not allowed in any of the keybindings! Use 'Space' and 'Tab' to bind to those keys.
 # Multiple keys can be bound to one command, just use a TOML array. # Multiple keys can be bound to one command, just use a TOML array.
Línea 123: Línea 123:
 # Ctrl- won't work on all keys, see this for a list: # Ctrl- won't work on all keys, see this for a list:
 # https://github.com/gdamore/tcell/blob/cb1e5d6fa606/key.go#L83 # https://github.com/gdamore/tcell/blob/cb1e5d6fa606/key.go#L83
 + 
 # An example of a TOML array for multiple keys being bound to one command is the default # An example of a TOML array for multiple keys being bound to one command is the default
 # binding for reload: # binding for reload:
Línea 130: Línea 130:
 # "Ctrl-R" means both ctrl-r and ctrl-shift-R (this is a quirk of what ctrl-r means on # "Ctrl-R" means both ctrl-r and ctrl-shift-R (this is a quirk of what ctrl-r means on
 # an ANSI terminal) # an ANSI terminal)
 + 
 # The default binding for opening the bottom bar for entering a URL or link number is: # The default binding for opening the bottom bar for entering a URL or link number is:
 # bind_bottom = "Space" # bind_bottom = "Space"
Línea 137: Línea 137:
 # bind_edit = "e" # bind_edit = "e"
 # This binds the "e" key to the command to edit the current URL. # This binds the "e" key to the command to edit the current URL.
 + 
 # The bind_link[1-90] options are for the commands to go to the first 10 links on a page, # The bind_link[1-90] options are for the commands to go to the first 10 links on a page,
 # typically these are bound to the number keys: # typically these are bound to the number keys:
Línea 150: Línea 150:
 # bind_link9 = "9" # bind_link9 = "9"
 # bind_link0 = "0" # bind_link0 = "0"
 + 
 # All keybindings: # All keybindings:
 # #
 # bind_bottom # bind_bottom
-bind_edit +bind_edit = "e" 
-bind_home +bind_home = ["H","Ctrl-H"] 
-bind_bookmarks +bind_bookmarks = "b" 
-bind_add_bookmark+bind_add_bookmark = ["A","Ctrl-A"]
 # bind_save # bind_save
-bind_reload +bind_reload = ["R","Ctrl-R"] 
-bind_back+bind_back = "b"
 # bind_forward # bind_forward
 # bind_moveup # bind_moveup
Línea 180: Línea 180:
 # bind_beginning: moving to beginning of page (top left) # bind_beginning: moving to beginning of page (top left)
 # bind_end: same but the for the end (bottom left) # bind_end: same but the for the end (bottom left)
 + 
 [url-handlers] [url-handlers]
 # Allows setting the commands to run for various URL schemes. # Allows setting the commands to run for various URL schemes.
Línea 193: Línea 193:
 # NOTE: These settings are overrided by the ones in the proxies section. # NOTE: These settings are overrided by the ones in the proxies section.
 # Note the use of single quotes, so that backslashes will not be escaped. # Note the use of single quotes, so that backslashes will not be escaped.
 + 
 # This is a special key that defines the handler for all URL schemes for which # This is a special key that defines the handler for all URL schemes for which
 # no handler is defined. # no handler is defined.
 other = 'off' other = 'off'
- +  
 + 
 # [[mediatype-handlers]] section # [[mediatype-handlers]] section
 # --------------------------------- # ---------------------------------
Línea 266: Línea 266:
 # 2. Just type: "image" # 2. Just type: "image"
 # 3. Catch-all: "*" # 3. Catch-all: "*"
- +  
 + 
 [cache] [cache]
 # Options for page cache - which is only for text pages # Options for page cache - which is only for text pages
 # Increase the cache size to speed up browsing at the expense of memory # Increase the cache size to speed up browsing at the expense of memory
 # Zero values mean there is no limit # Zero values mean there is no limit
 + 
 max_size = 0  # Size in bytes max_size = 0  # Size in bytes
 max_pages = 30 # The maximum number of pages the cache will store max_pages = 30 # The maximum number of pages the cache will store
 + 
 # How long a page will stay in cache, in seconds. # How long a page will stay in cache, in seconds.
 timeout = 1800 # 30 mins timeout = 1800 # 30 mins
 + 
 [proxies] [proxies]
 # Allows setting a Gemini proxy for different schemes. # Allows setting a Gemini proxy for different schemes.
Línea 291: Línea 291:
 # #
 # Note that HTTP and HTTPS are treated as separate protocols here. # Note that HTTP and HTTPS are treated as separate protocols here.
- +  
 + 
 [subscriptions] [subscriptions]
 # For tracking feeds and pages # For tracking feeds and pages
 + 
 # Whether a pop-up appears when viewing a potential feed # Whether a pop-up appears when viewing a potential feed
 popup = true popup = true
 + 
 # How often to check for updates to subscriptions in the background, in seconds. # How often to check for updates to subscriptions in the background, in seconds.
 # Set it to 0 to disable this feature. You can still update individual feeds # Set it to 0 to disable this feature. You can still update individual feeds
Línea 305: Línea 305:
 # Note Amfora will check for updates on browser start no matter what this setting is. # Note Amfora will check for updates on browser start no matter what this setting is.
 update_interval = 1800 # 30 mins update_interval = 1800 # 30 mins
 + 
 # How many subscriptions can be checked at the same time when updating. # How many subscriptions can be checked at the same time when updating.
 # If you have many subscriptions you may want to increase this for faster # If you have many subscriptions you may want to increase this for faster
 # update times. Any value below 1 will be corrected to 1. # update times. Any value below 1 will be corrected to 1.
 workers = 3 workers = 3
 + 
 # The number of subscription updates displayed per page. # The number of subscription updates displayed per page.
 entries_per_page = 20 entries_per_page = 20
- +  
 + 
 [theme] [theme]
 # This section is for changing the COLORS used in Amfora. # This section is for changing the COLORS used in Amfora.
Línea 323: Línea 323:
 # The key "bg" is already set to "default", but this can be used on other backgrounds, # The key "bg" is already set to "default", but this can be used on other backgrounds,
 # like for modals. # like for modals.
 + 
 # Note that not all colors will work on terminals that do not have truecolor support. # Note that not all colors will work on terminals that do not have truecolor support.
 # If you want to stick to the standard 16 or 256 colors, you can get # If you want to stick to the standard 16 or 256 colors, you can get
 # a list of those here: https://jonasjacek.github.io/colors/ # a list of those here: https://jonasjacek.github.io/colors/
 # DO NOT use the names from that site, just the hex codes. # DO NOT use the names from that site, just the hex codes.
 + 
 # Definitions: # Definitions:
 #   bg = background #   bg = background
Línea 337: Línea 337:
 #   bkmk = bookmark #   bkmk = bookmark
 #   modal = a popup window/box in the middle of the screen #   modal = a popup window/box in the middle of the screen
 + 
 # EXAMPLES: # EXAMPLES:
 # hdg_1 = "green" # hdg_1 = "green"
 # hdg_2 = "#5f0000" # hdg_2 = "#5f0000"
 # bg = "default" # bg = "default"
 + 
 # Available keys to set: # Available keys to set:
 + 
 # bg: background for pages, tab row, app in general # bg: background for pages, tab row, app in general
 # tab_num: The number/highlight of the tabs at the top # tab_num: The number/highlight of the tabs at the top
Línea 352: Línea 352:
 # bottombar_bg # bottombar_bg
 # scrollbar: The scrollbar that appears on the right for long pages # scrollbar: The scrollbar that appears on the right for long pages
 + 
 # hdg_1 # hdg_1
 # hdg_2 # hdg_2
Línea 363: Línea 363:
 # preformatted_text # preformatted_text
 # list_text # list_text
 + 
 # btn_bg: The bg color for all modal buttons # btn_bg: The bg color for all modal buttons
 # btn_text: The text color for all modal buttons # btn_text: The text color for all modal buttons
 + 
 # dl_choice_modal_bg # dl_choice_modal_bg
 # dl_choice_modal_text # dl_choice_modal_text
Línea 381: Línea 381:
 # subscription_modal_bg # subscription_modal_bg
 # subscription_modal_text # subscription_modal_text
 + 
 # input_modal_bg # input_modal_bg
 # input_modal_text # input_modal_text
 # input_modal_field_bg: The bg of the input field, where you type the text # input_modal_field_bg: The bg of the input field, where you type the text
 # input_modal_field_text: The color of the text you type # input_modal_field_text: The color of the text you type
 + 
 # bkmk_modal_bg # bkmk_modal_bg
 # bkmk_modal_text # bkmk_modal_text

Este sitio web utiliza cookies para guardar datos esenciales de su actividad, como su autenticación. Al entrar acepta el uso de cookies.

Más información