email/neomutt: improve keybindings, fix HTML emails

This commit is contained in:
Benjamin Yule Bädorf 2024-03-27 10:25:39 +01:00
parent bc06c14d98
commit 03b7e423cc
Signed by: b12f
GPG key ID: 729956E1124F8F26

View file

@ -160,18 +160,18 @@ in {
{
map = ["index" "pager"];
key = "\\Cb";
action = ''<pipe-message> urlscan<Enter>" "call urlscan to extract URLs out of a message'';
action = ''<pipe-message> ${pkgs.urlscan}/bin/urlscan<Enter>" "call urlscan to extract URLs out of a message'';
}
{
map = ["attach" "compose"];
key = "\\Cb";
action = ''<pipe-entry> urlscan<Enter>" "call urlscan to extract URLs out of a message'';
action = ''<pipe-entry> ${pkgs.urlscan}/bin/urlscan<Enter>" "call urlscan to extract URLs out of a message'';
}
# Translate markdown to html
{
map = ["compose"];
key = "\\e5";
action = ''F pandoc -s -f markdown -t html \ny^T^Utext/html; charset=utf-8\n'';
key = "\\Cm";
action = ''F ${pkgs.pandoc}/bin/pandoc -s -f markdown -t html \ny^T^Utext/html; charset=utf-8\n" "Convert to HTML'';
}
# Save to ~/Downloads by default
{
@ -179,6 +179,11 @@ in {
key = "S";
action = ''<save-entry><bol>~/Downloads/<eol>" "Save to Downloads'';
}
{
map = ["index"];
key = "\\Ca";
action = ''<tag-pattern>~N<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "Mark all as read'';
}
] ++ lib.lists.imap1 (i: address: {
map = ["index" "pager"];
key = "<F${builtins.toString i}>";
@ -195,6 +200,7 @@ in {
'';
settings = {
mark_old = "no";
sendmail_wait = "0";
crypt_verify_sig = "yes";
imap_check_subscribed = "yes";