aerc: allow config sections to be lines (#7280)

There are some sections that are order sensitive, e.g. filters,
so just lines will preserve that order.

Fixes: #6059
This commit is contained in:
Lukas Nagel 2025-07-05 02:54:53 +02:00 committed by GitHub
parent 7d9e3c35f0
commit 57d1027e1e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 47 additions and 16 deletions

View file

@ -1,5 +1,15 @@
# Generated by Home Manager.
[filters]
text/plain=colorize
text/calendar=calendar
message/delivery-status=colorize
message/rfc822=colorize
text/html=pandoc -f html -t plain | colorize
text/html=html | colorize
text/*=bat -fP --file-name="$AERC_FILENAME"
.headers=colorize
[general]
unsafe-accounts-conf = true

View file

@ -72,6 +72,18 @@
"ui:account=Test" = {
sidebar-width = 1337;
};
# https://github.com/nix-community/home-manager/issues/6059
filters = ''
text/plain=colorize
text/calendar=calendar
message/delivery-status=colorize
message/rfc822=colorize
text/html=pandoc -f html -t plain | colorize
text/html=html | colorize
text/*=bat -fP --file-name="$AERC_FILENAME"
.headers=colorize
'';
};
stylesets = {