mirror of
https://codeberg.org/cage/tinmop/
synced 2025-02-16 08:00:35 +01:00
- added a configuration directive to close the link window after a link has been selected.
This commit is contained in:
parent
a0c25ee8fe
commit
e6cd7b9ab4
@ -41,6 +41,10 @@ editor = "nano --locking"
|
|||||||
# (default 'no', change to 'yes' if desired)
|
# (default 'no', change to 'yes' if desired)
|
||||||
start.update.gemlog = no
|
start.update.gemlog = no
|
||||||
|
|
||||||
|
# close links window when opening the selected link
|
||||||
|
|
||||||
|
open-message-link-window.close-after-select = yes
|
||||||
|
|
||||||
# color parts of a displayed message according to a regular expression
|
# color parts of a displayed message according to a regular expression
|
||||||
# syntax is regular expression color attribute
|
# syntax is regular expression color attribute
|
||||||
# valid color are specified using RGB triplets as #RRGGBB or color names
|
# valid color are specified using RGB triplets as #RRGGBB or color names
|
||||||
|
@ -75,6 +75,9 @@
|
|||||||
(let* ((parsed (iri:iri-parse url))
|
(let* ((parsed (iri:iri-parse url))
|
||||||
(scheme (uri:scheme parsed))
|
(scheme (uri:scheme parsed))
|
||||||
(decoded-path (percent-decode url)))
|
(decoded-path (percent-decode url)))
|
||||||
|
(when (and (not enqueue)
|
||||||
|
(swconf:close-link-window-after-select-p))
|
||||||
|
(ui:close-open-message-link-window))
|
||||||
(cond
|
(cond
|
||||||
((string= gemini-constants:+gemini-scheme+ scheme)
|
((string= gemini-constants:+gemini-scheme+ scheme)
|
||||||
(db:insert-in-history (ui:gemini-open-url-prompt) url)
|
(db:insert-in-history (ui:gemini-open-url-prompt) url)
|
||||||
|
@ -1113,6 +1113,7 @@
|
|||||||
:load-config-file
|
:load-config-file
|
||||||
:external-editor
|
:external-editor
|
||||||
:gemini-downloading-animation
|
:gemini-downloading-animation
|
||||||
|
:close-link-window-after-select-p
|
||||||
:suggestion-window-selected-item-colors
|
:suggestion-window-selected-item-colors
|
||||||
:gemini-default-favicon
|
:gemini-default-favicon
|
||||||
:gemini-update-gemlog-at-start-p
|
:gemini-update-gemlog-at-start-p
|
||||||
|
@ -527,6 +527,7 @@
|
|||||||
directory-symbol
|
directory-symbol
|
||||||
fetch
|
fetch
|
||||||
update
|
update
|
||||||
|
close-after-select
|
||||||
password-echo-character
|
password-echo-character
|
||||||
color-re
|
color-re
|
||||||
ignore-user-re
|
ignore-user-re
|
||||||
@ -595,6 +596,12 @@
|
|||||||
(access-key->user-directive keys))))
|
(access-key->user-directive keys))))
|
||||||
value)))
|
value)))
|
||||||
|
|
||||||
|
(defun close-link-window-after-select-p ()
|
||||||
|
(let ((value (access:accesses *software-configuration*
|
||||||
|
+key-open-message-link-window+
|
||||||
|
+key-close-after-select+)))
|
||||||
|
(not (false-value-p value))))
|
||||||
|
|
||||||
(defun suggestion-window-selected-item-colors ()
|
(defun suggestion-window-selected-item-colors ()
|
||||||
(values (access-non-null-conf-value *software-configuration*
|
(values (access-non-null-conf-value *software-configuration*
|
||||||
+key-suggestions-window+
|
+key-suggestions-window+
|
||||||
|
Loading…
x
Reference in New Issue
Block a user