aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorMoritz Poldrack <git@moritz.sh>2023-09-01 13:40:56 +0200
committerRobin Jarry <robin@jarry.cc>2023-09-18 21:15:34 +0200
commitad159d5e9bd40dd42ce2bdbcbab30d954a3c4c0a (patch)
treef67ae66a7aec3fd6c400a31f133e716a2a1c934b /config
parent389d89a9362e2e782f17074331bf85bb579d7466 (diff)
downloadaerc-ad159d5e9bd40dd42ce2bdbcbab30d954a3c4c0a.tar.gz
compose: add option for LF-only editors
Some editors only support LF line endings. For these, standard compliant eml files are not an option. Add an option compose.lf-editor to translate the eml file to lf lineendings. Signed-off-by: Moritz Poldrack <git@moritz.sh> Acked-by: Robin Jarry <robin@jarry.cc> Tested-by: Matěj Cepl <mcepl@cepl.eu>
Diffstat (limited to 'config')
-rw-r--r--config/aerc.conf7
-rw-r--r--config/compose.go1
2 files changed, 8 insertions, 0 deletions
diff --git a/config/aerc.conf b/config/aerc.conf
index 46b24f1c..00c8501f 100644
--- a/config/aerc.conf
+++ b/config/aerc.conf
@@ -383,6 +383,13 @@
#editor=
#
+# When set, aerc will create and read .eml files for composing that have
+# non-standard \n linebreaks. This is only relevant if the used editor does not
+# support CRLF linebreaks.
+#
+#lf-editor=false
+
+#
# Default header fields to display when composing a message. To display
# multiple headers in the same row, separate them with a pipe, e.g. "To|From".
#
diff --git a/config/compose.go b/config/compose.go
index 37e46f96..463723cf 100644
--- a/config/compose.go
+++ b/config/compose.go
@@ -17,6 +17,7 @@ type ComposeConfig struct {
FilePickerCmd string `ini:"file-picker-cmd"`
FormatFlowed bool `ini:"format-flowed"`
EditHeaders bool `ini:"edit-headers"`
+ LFEditor bool `ini:"lf-editor"`
}
var Compose = new(ComposeConfig)