Fix handling of multiple template-dirs
Before, while the docs stated that template-dirs was a colon-separated list, a delimiter was not specified in the struct tag, so it was falling back to the default for the ini library (a comma). Also added a note to the docs to clarify that templates are configured in the [templates] section.
This commit is contained in:
parent
6b0483dd92
commit
aa967682bc
|
@ -106,7 +106,7 @@ type TriggersConfig struct {
|
|||
}
|
||||
|
||||
type TemplateConfig struct {
|
||||
TemplateDirs []string
|
||||
TemplateDirs []string `ini:"template-dirs", delim:":"`
|
||||
QuotedReply string `ini:"quoted-reply"`
|
||||
Forwards string `ini:"forwards"`
|
||||
}
|
||||
|
|
|
@ -269,7 +269,7 @@ They are configured in the *[triggers]* section of aerc.conf.
|
|||
Format specifiers from *index-format* are expanded with respect to the new
|
||||
message.
|
||||
|
||||
## Templates
|
||||
## TEMPLATES
|
||||
|
||||
Templates are used to populate the body of an email. The compose, reply
|
||||
and forward commands can be called with the -T flag with the name of the
|
||||
|
@ -278,6 +278,8 @@ template name.
|
|||
aerc ships with some default templates installed in the share directory (usually
|
||||
_/usr/share/aerc/templates_).
|
||||
|
||||
These options are configured in the *[templates]* section of aerc.conf.
|
||||
|
||||
*template-dirs*
|
||||
The directory where the templates are stored. The config takes a
|
||||
colon-separated list of dirs.
|
||||
|
|
Loading…
Reference in New Issue