1
0
mirror of https://codeberg.org/cage/tinmop/ synced 2024-12-22 23:47:56 +01:00

- made width of TOC customizable (when using tinmop in gemini fullscreen mode).

This commit is contained in:
cage 2021-11-12 21:06:28 +01:00
parent 01eef29432
commit 22bce9cdd9
4 changed files with 23 additions and 6 deletions

View File

@ -155,6 +155,11 @@ color-regexp = ":aborted" red
color-regexp = ":rendering" cyan
# The width of the generated table of contents for gemini pages when
# tinmop is ran as exclusive gemini client (command line option "-G")
gemini.exclusive.mode.toc.width = 1/5
# the signature file path relative to $HOME
# signature-file = ".signature"
@ -165,10 +170,6 @@ color-regexp = ":rendering" cyan
# ignore-user-regexp = "^user-name@domain-name"
# Use gemini favicon?
# see gemini://mozz.us/files/rfc_gemini_favicon.gmi
# gemini.fetch.favicon = no
# you can instruct the program to open some non gemini link with a
# program installed with your system like below
# syntax open "REGEXP" with "PROGRAM-NAME" [use cache]
@ -215,4 +216,8 @@ open ".gpub$" with "tinmop"
# E.g. gemini://foo/bar.gmi#baz will jump to the first occurence of "baz".
# The fragment is used as a, perl compatible, regular expression
experimental.gemini.iri.fragment.regex = no
experimental.gemini.iri.fragment.regex = no
# Use gemini favicon?
# see gemini://mozz.us/files/rfc_gemini_favicon.gmi
gemini.fetch.favicon = no

View File

@ -37,7 +37,7 @@
(selected-fg (swconf:selected-foreground theme-style))
(selected-bg (swconf:selected-background theme-style))
(width (if command-line:*gemini-full-screen-mode*
(truncate (* 1/4 (win-width *main-window*)))
(swconf:config-gemini-fullscreen-toc-width)
(- (win-width *main-window*)
(win-width *thread-window*))))
(raw-height (swconf:win-height swconf:+key-gemini-toc-window+))

View File

@ -1219,6 +1219,7 @@
:tree-config-rendering-values
:make-tree-colormap
:left-arrow
:config-gemini-fullscreen-toc-width
:config-post-allowed-language
:config-purge-history-days-offset
:config-purge-cage-days-offset

View File

@ -477,6 +477,9 @@
width
height
position
exclusive
mode
toc
downloading
animation
x
@ -935,6 +938,14 @@
(,transform-value-fn (access:accesses *software-configuration*
,@keys))))
(gen-simple-access (gemini-fullscreen-toc-width
:transform-value-fn main-window:parse-subwin-w)
+key-gemini+
+key-exclusive+
+key-mode+
+key-toc+
+key-width+)
(gen-simple-access (post-allowed-language
:transform-value-fn
(lambda (a) (cl-ppcre:create-scanner a :case-insensitive-mode t)))