aboutsummaryrefslogtreecommitdiffstats
path: root/config/config.go
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2022-01-19 21:28:06 +0100
committerRobin Jarry <robin@jarry.cc>2022-01-19 21:42:41 +0100
commit877a94f5d9a7852af5fbcfd1196a4b1f4c676564 (patch)
tree798e640ec50520cdd040570ecf1f16fb911a1e2f /config/config.go
parent92bf89c3389b8e08cf99d30cf20a818529680f51 (diff)
downloadaerc-877a94f5d9a7852af5fbcfd1196a4b1f4c676564.tar.gz
compose: add default template for new messages
Allow defining a default template to use when composing new messages. Add an example to be used for new users. Signed-off-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'config/config.go')
-rw-r--r--config/config.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/config.go b/config/config.go
index 0472daff..2e1d5893 100644
--- a/config/config.go
+++ b/config/config.go
@@ -146,6 +146,7 @@ type TriggersConfig struct {
type TemplateConfig struct {
TemplateDirs []string `ini:"template-dirs", delim:":"`
+ NewMessage string `ini:"new-message"`
QuotedReply string `ini:"quoted-reply"`
Forwards string `ini:"forwards"`
}
@@ -595,6 +596,7 @@ func LoadConfigFromFile(root *string, sharedir string) (*AercConfig, error) {
Templates: TemplateConfig{
TemplateDirs: []string{path.Join(sharedir, "templates")},
+ NewMessage: "new_message",
QuotedReply: "quoted_reply",
Forwards: "forward_as_body",
},