aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorKoni Marti <koni.marti@gmail.com>2022-07-27 23:39:16 +0200
committerRobin Jarry <robin@jarry.cc>2023-07-17 10:24:10 +0200
commit11e5390fa0acbcc609ca177777548dd2d725afbc (patch)
treef5474f504bc8e36b2356740a5b9e581db6bb4a83 /config
parentcf061e1b0b536da1cc401c19af456ea373c47e6e (diff)
downloadaerc-11e5390fa0acbcc609ca177777548dd2d725afbc.tar.gz
compose: implement embedded headers in editor
Implement embedded header mode in the composer widget. To activate it, use set [compose].edit-headers=true in aerc.conf. Signed-off-by: Koni Marti <koni.marti@gmail.com> Signed-off-by: Robin Jarry <robin@jarry.cc> Tested-by: Bence Ferdinandy <bence@ferdinandy.com>
Diffstat (limited to 'config')
-rw-r--r--config/aerc.conf10
-rw-r--r--config/compose.go1
2 files changed, 11 insertions, 0 deletions
diff --git a/config/aerc.conf b/config/aerc.conf
index d6ffa389..d195563b 100644
--- a/config/aerc.conf
+++ b/config/aerc.conf
@@ -390,6 +390,16 @@
#header-layout=To|From,Subject
#
+# Edit headers into the text editor instead than separate fields.
+#
+# When this is true, address-book-cmd is not supported and address completion
+# is left to the editor itself. Also, displaying multiple headers on the same
+# line is not possible.
+#
+# Default: false
+#edit-headers=false
+
+#
# Specifies the command to be used to tab-complete email addresses. Any
# occurrence of "%s" in the address-book-cmd will be replaced with what the
# user has typed so far.
diff --git a/config/compose.go b/config/compose.go
index 4b92bddc..37e46f96 100644
--- a/config/compose.go
+++ b/config/compose.go
@@ -16,6 +16,7 @@ type ComposeConfig struct {
EmptySubjectWarning bool `ini:"empty-subject-warning"`
FilePickerCmd string `ini:"file-picker-cmd"`
FormatFlowed bool `ini:"format-flowed"`
+ EditHeaders bool `ini:"edit-headers"`
}
var Compose = new(ComposeConfig)