email/neomutt: improve keybindings, fix HTML emails
This commit is contained in:
parent
bc06c14d98
commit
03b7e423cc
|
@ -160,18 +160,18 @@ in {
|
||||||
{
|
{
|
||||||
map = ["index" "pager"];
|
map = ["index" "pager"];
|
||||||
key = "\\Cb";
|
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"];
|
map = ["attach" "compose"];
|
||||||
key = "\\Cb";
|
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
|
# Translate markdown to html
|
||||||
{
|
{
|
||||||
map = ["compose"];
|
map = ["compose"];
|
||||||
key = "\\e5";
|
key = "\\Cm";
|
||||||
action = ''F pandoc -s -f markdown -t html \ny^T^Utext/html; charset=utf-8\n'';
|
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
|
# Save to ~/Downloads by default
|
||||||
{
|
{
|
||||||
|
@ -179,6 +179,11 @@ in {
|
||||||
key = "S";
|
key = "S";
|
||||||
action = ''<save-entry><bol>~/Downloads/<eol>" "Save to Downloads'';
|
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: {
|
] ++ lib.lists.imap1 (i: address: {
|
||||||
map = ["index" "pager"];
|
map = ["index" "pager"];
|
||||||
key = "<F${builtins.toString i}>";
|
key = "<F${builtins.toString i}>";
|
||||||
|
@ -195,6 +200,7 @@ in {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
|
mark_old = "no";
|
||||||
sendmail_wait = "0";
|
sendmail_wait = "0";
|
||||||
crypt_verify_sig = "yes";
|
crypt_verify_sig = "yes";
|
||||||
imap_check_subscribed = "yes";
|
imap_check_subscribed = "yes";
|
||||||
|
|
Loading…
Reference in a new issue