From 11e5390fa0acbcc609ca177777548dd2d725afbc Mon Sep 17 00:00:00 2001 From: Koni Marti Date: Wed, 27 Jul 2022 23:39:16 +0200 Subject: 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 Signed-off-by: Robin Jarry Tested-by: Bence Ferdinandy --- config/aerc.conf | 10 ++++++++++ config/compose.go | 1 + 2 files changed, 11 insertions(+) (limited to 'config') diff --git a/config/aerc.conf b/config/aerc.conf index d6ffa389..d195563b 100644 --- a/config/aerc.conf +++ b/config/aerc.conf @@ -389,6 +389,16 @@ # Default: To|From,Subject #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 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) -- cgit