AutoYADM commit: 2025-03-20 22:45:08

This commit is contained in:
Daniel Fichtinger 2025-03-20 22:45:08 -04:00
parent 9196d6a3a3
commit f4e8207ae7
3 changed files with 16 additions and 7 deletions

View file

@ -119,10 +119,10 @@ index-columns=flags:4,labels<=,name<20%,subject,date>=
# column-name={{if match .Folder "^(Gesendet|Sent)$"}}{{index (.To | names) 0}}{{else}}{{index (.From | names) 0}}{{end}} # column-name={{if match .Folder "^(Gesendet|Sent)$"}}{{index (.To | names) 0}}{{else}}{{index (.From | names) 0}}{{end}}
# #
# Default settings # Default settings
column-flags={{.StyleMap .Flags (case `^!$` "important-flag") (case `r|a` "reply-flag") (default "flags") | join ""}} column-flags= {{.StyleMap .Flags (case `^!$` "important-flag") (case `r|a` "reply-flag") (default "flags") | join ""}}
column-name={{.Style (index (.From | names) 0) "name"}} column-name= {{.Style (index (.From | names) 0) "name"}}
column-subject={{.Style (printf "%s%s" .ThreadPrefix .Subject) "subject"}} column-subject= {{.Style (printf "%s%s" .ThreadPrefix .Subject) "subject"}}
column-date={{.Style (.DateAutoFormat .Date.Local) "date"}} column-date= {{.Style (.DateAutoFormat .Date.Local) "date"}}
column-labels = {{.StyleMap (.Labels | join "," | replace `\bArchive(/|$|,)` `A$1` | replace `\bLists(/|$|,)` `L$1` | replace `Sourcehut` `Srht` | replace `Recipt` `Rcpt` | replace `Inbox` `I` | replace `Sent` `S` | replace `Draft(s)?` `Dr` | replace `Snoozed` `Snz` | split "," ) (exclude (switch .Folder (case `Inbox` `I`) (default "x"))) (case `^A(/)?.*` "archive") (case `^L(/)?.*` "lists") (default "labels") | join ","}} column-labels = {{.StyleMap (.Labels | join "," | replace `\bArchive(/|$|,)` `A$1` | replace `\bLists(/|$|,)` `L$1` | replace `Sourcehut` `Srht` | replace `Recipt` `Rcpt` | replace `Inbox` `I` | replace `Sent` `S` | replace `Draft(s)?` `Dr` | replace `Snoozed` `Snz` | split "," ) (exclude (switch .Folder (case `Inbox` `I`) (default "x"))) (case `^A(/)?.*` "archive") (case `^L(/)?.*` "lists") (default "labels") | join ","}}
# #

View file

@ -0,0 +1,9 @@
(section_name) @namespace
(setting_name) @keyword
(setting_value) @string
(comment) @comment
; ((setting_value) @constant.builtin
; (#match? @constant.builtin ".*"))

View file

@ -1,4 +1,4 @@
((setting_value) @injection.content ((setting_value) @injection.content
(#match? @injection.content "\\{\\{.*\\}\\}") (#match? @injection.content ".*\\{\\{.*\\}\\}.*")
(#set! injection.language "gotmpl") (#set! injection.language "gotmpl")
(#set! injection.include-children)) (#set! injection.include-children))