mirror of
https://codeberg.org/cage/tinmop/
synced 2025-03-07 10:37:37 +01:00
- [TUI] moved coloring rules to default theme file;
- [TUI] added rule to colorize hashtags.
This commit is contained in:
parent
a8acc05e90
commit
0a484ea39c
@ -701,6 +701,123 @@ gopher-window.line.prefix.foreground = cyan
|
|||||||
|
|
||||||
gopher-window.line.prefix.attribute = bold
|
gopher-window.line.prefix.attribute = bold
|
||||||
|
|
||||||
|
# color parts of a displayed message according to a regular expression
|
||||||
|
# syntax is regular expression color attribute
|
||||||
|
# valid color are specified using RGB triplets as #RRGGBB or color names
|
||||||
|
# valid color names are:
|
||||||
|
# - red
|
||||||
|
# - green
|
||||||
|
# - yellow
|
||||||
|
# - blue
|
||||||
|
# - magenta
|
||||||
|
# - cyan
|
||||||
|
# - white
|
||||||
|
#
|
||||||
|
# valid attributes are:
|
||||||
|
# - bold
|
||||||
|
# - italic
|
||||||
|
# - underline
|
||||||
|
# - blink
|
||||||
|
|
||||||
|
# attribute is optional
|
||||||
|
|
||||||
|
# Some examples follows, order matters!
|
||||||
|
|
||||||
|
# footnotes
|
||||||
|
|
||||||
|
color-regexp = "[⁰¹²³⁴⁵⁶⁷⁸⁹]" #f7a805 italic
|
||||||
|
|
||||||
|
# http links
|
||||||
|
color-regexp = "http(s)?://[^ ]+" #ff0000
|
||||||
|
|
||||||
|
# gemini address header
|
||||||
|
|
||||||
|
color-regexp = "-> gemini://[^ ]+" yellow underline
|
||||||
|
|
||||||
|
#gemini links
|
||||||
|
|
||||||
|
color-regexp = "gemini://[^ ]+" #ff0000
|
||||||
|
|
||||||
|
#gopher links
|
||||||
|
|
||||||
|
color-regexp = "gopher://[^ ]+" #ff0000
|
||||||
|
|
||||||
|
# (c) and (r)
|
||||||
|
|
||||||
|
color-regexp = "(?i)(\\(c\\))|(\\(r\\))" #ff0000 bold
|
||||||
|
|
||||||
|
# date yyyy-mm-dd
|
||||||
|
|
||||||
|
color-regexp = "[0-9]{4}-[0-9]?[0-9]-[0-9]?[0-9]" #0000ff bold
|
||||||
|
|
||||||
|
# numbers
|
||||||
|
|
||||||
|
color-regexp = "-?[0-9]+(.[0-9]+)?%" #ff00ff bold
|
||||||
|
|
||||||
|
# by default polls uses that
|
||||||
|
|
||||||
|
color-regexp = "⯀" green bold
|
||||||
|
|
||||||
|
color-regexp = "The poll has expired" #ff00ff bold
|
||||||
|
|
||||||
|
# HH:MM
|
||||||
|
|
||||||
|
color-regexp = "[012]?[0-9]:[0123456][0-9]" cyan bold
|
||||||
|
|
||||||
|
# your username mentioned
|
||||||
|
|
||||||
|
#color-regexp = "your-username" #ff00ff bold
|
||||||
|
|
||||||
|
# mentions
|
||||||
|
|
||||||
|
color-regexp = "@[^\s]+" cyan
|
||||||
|
|
||||||
|
# hashtags
|
||||||
|
|
||||||
|
color-regexp = "#[^\s]+" #fca9ff
|
||||||
|
|
||||||
|
# gemini colorization
|
||||||
|
|
||||||
|
# header level 1
|
||||||
|
|
||||||
|
color-regexp = "^🞂.*" white bold
|
||||||
|
|
||||||
|
# header level 2
|
||||||
|
|
||||||
|
color-regexp = "🞓 .+" blue bold
|
||||||
|
|
||||||
|
# header level 3
|
||||||
|
|
||||||
|
color-regexp = "🞐 .+" yellow bold
|
||||||
|
|
||||||
|
# header level 4
|
||||||
|
|
||||||
|
color-regexp = "🞎 " yellow
|
||||||
|
|
||||||
|
# list bullet
|
||||||
|
|
||||||
|
color-regexp = "• " blue bold
|
||||||
|
|
||||||
|
# stream statuses
|
||||||
|
|
||||||
|
color-regexp = ":completed" green bold
|
||||||
|
|
||||||
|
color-regexp = ":aborted" red
|
||||||
|
|
||||||
|
color-regexp = ":rendering" cyan
|
||||||
|
|
||||||
|
# _underline_
|
||||||
|
|
||||||
|
color-regexp = "_[^_]+_" #ffff00 underline
|
||||||
|
|
||||||
|
# *bold*
|
||||||
|
|
||||||
|
color-regexp = "\*[^*]+\*" #ffff00 bold
|
||||||
|
|
||||||
|
# /italic/ , commented as interferes with file path and URI
|
||||||
|
|
||||||
|
#color-regexp = "/[^/]+/" #ffff00 italic
|
||||||
|
|
||||||
#########################
|
#########################
|
||||||
# ⚠ EXPERIMENTAL ZONE ⚠ #
|
# ⚠ EXPERIMENTAL ZONE ⚠ #
|
||||||
#########################
|
#########################
|
||||||
|
113
etc/shared.conf
113
etc/shared.conf
@ -75,119 +75,6 @@ delete.fetched.mentions = yes
|
|||||||
|
|
||||||
open-message-link-window.close-after-select = yes
|
open-message-link-window.close-after-select = yes
|
||||||
|
|
||||||
# color parts of a displayed message according to a regular expression
|
|
||||||
# syntax is regular expression color attribute
|
|
||||||
# valid color are specified using RGB triplets as #RRGGBB or color names
|
|
||||||
# valid color names are:
|
|
||||||
# - red
|
|
||||||
# - green
|
|
||||||
# - yellow
|
|
||||||
# - blue
|
|
||||||
# - magenta
|
|
||||||
# - cyan
|
|
||||||
# - white
|
|
||||||
#
|
|
||||||
# valid attributes are:
|
|
||||||
# - bold
|
|
||||||
# - italic
|
|
||||||
# - underline
|
|
||||||
# - blink
|
|
||||||
|
|
||||||
# attribute is optional
|
|
||||||
|
|
||||||
# Some examples follows, order matters!
|
|
||||||
|
|
||||||
# footnotes
|
|
||||||
|
|
||||||
color-regexp = "[⁰¹²³⁴⁵⁶⁷⁸⁹]" #f7a805 italic
|
|
||||||
|
|
||||||
# http links
|
|
||||||
color-regexp = "http(s)?://[^ ]+" #ff0000
|
|
||||||
|
|
||||||
# gemini address header
|
|
||||||
|
|
||||||
color-regexp = "-> gemini://[^ ]+" yellow underline
|
|
||||||
|
|
||||||
#gemini links
|
|
||||||
|
|
||||||
color-regexp = "gemini://[^ ]+" #ff0000
|
|
||||||
|
|
||||||
#gopher links
|
|
||||||
|
|
||||||
color-regexp = "gopher://[^ ]+" #ff0000
|
|
||||||
|
|
||||||
# (c) and (r)
|
|
||||||
|
|
||||||
color-regexp = "(?i)(\\(c\\))|(\\(r\\))" #ff0000 bold
|
|
||||||
|
|
||||||
# date yyyy-mm-dd
|
|
||||||
|
|
||||||
color-regexp = "[0-9]{4}-[0-9]?[0-9]-[0-9]?[0-9]" #0000ff bold
|
|
||||||
|
|
||||||
# numbers
|
|
||||||
|
|
||||||
color-regexp = "-?[0-9]+(.[0-9]+)?%" #ff00ff bold
|
|
||||||
|
|
||||||
# by default polls uses that
|
|
||||||
|
|
||||||
color-regexp = "⯀" green bold
|
|
||||||
|
|
||||||
color-regexp = "The poll has expired" #ff00ff bold
|
|
||||||
|
|
||||||
# HH:MM
|
|
||||||
|
|
||||||
color-regexp = "[012]?[0-9]:[0123456][0-9]" cyan bold
|
|
||||||
|
|
||||||
# your username mentioned
|
|
||||||
|
|
||||||
#color-regexp = "your-username" #ff00ff bold
|
|
||||||
|
|
||||||
# mentions
|
|
||||||
|
|
||||||
color-regexp = "@[^\s]+" cyan
|
|
||||||
|
|
||||||
# gemini colorization
|
|
||||||
|
|
||||||
# header level 1
|
|
||||||
|
|
||||||
color-regexp = "^🞂.*" white bold
|
|
||||||
|
|
||||||
# header level 2
|
|
||||||
|
|
||||||
color-regexp = "🞓 .+" blue bold
|
|
||||||
|
|
||||||
# header level 3
|
|
||||||
|
|
||||||
color-regexp = "🞐 .+" yellow bold
|
|
||||||
|
|
||||||
# header level 4
|
|
||||||
|
|
||||||
color-regexp = "🞎 " yellow
|
|
||||||
|
|
||||||
# list bullet
|
|
||||||
|
|
||||||
color-regexp = "• " blue bold
|
|
||||||
|
|
||||||
# stream statuses
|
|
||||||
|
|
||||||
color-regexp = ":completed" green bold
|
|
||||||
|
|
||||||
color-regexp = ":aborted" red
|
|
||||||
|
|
||||||
color-regexp = ":rendering" cyan
|
|
||||||
|
|
||||||
# _underline_
|
|
||||||
|
|
||||||
color-regexp = "_[^_]+_" #ffff00 underline
|
|
||||||
|
|
||||||
# *bold*
|
|
||||||
|
|
||||||
color-regexp = "\*[^*]+\*" #ffff00 bold
|
|
||||||
|
|
||||||
# /italic/ , commented as interferes with file path and URI
|
|
||||||
|
|
||||||
#color-regexp = "/[^/]+/" #ffff00 italic
|
|
||||||
|
|
||||||
gemini.search-engine.uri = "gemini://kennedy.gemi.dev/search"
|
gemini.search-engine.uri = "gemini://kennedy.gemi.dev/search"
|
||||||
|
|
||||||
# gemini proxy, forward all the gemini and http requests to the servel
|
# gemini proxy, forward all the gemini and http requests to the servel
|
||||||
|
Loading…
x
Reference in New Issue
Block a user