M .config/aerc/aerc.conf +13 -6
@@ 6,7 6,7 @@
# Used as a default path for save operations if no other path is specified.
# ~ is expanded to the current user home dir.
#
-#default-save-path=
+default-save-path=~/Downloads/
# If set to "gpg", aerc will use system gpg binary and keystore for all crypto
# operations. If set to "internal", the internal openpgp keyring will be used.
@@ 116,19 116,23 @@ timestamp-format=2006-01-02 03:04 PM
# Index-only time format for messages that were received/sent today.
# If this is not specified, timestamp-format is used instead.
#
-this-day-time-format=2006-01-02 03:04 PM
+#this-day-time-format=2006-01-02 03:04 PM
#
# Index-only time format for messages that were received/sent within the last
# 7 days. If this is not specified, timestamp-format is used instead.
#
-this-week-time-format=2006-01-02 03:04 PM
+#this-week-time-format=2006-01-02 03:04 PM
#
# Index-only time format for messages that were received/sent this year.
# If this is not specified, timestamp-format is used instead.
#
-this-year-time-format=2006-01-02 03:04 PM
+#this-year-time-format=2006-01-02 03:04 PM
+
+this-day-time-format="Today 15:04"
+this-week-time-format="Monday 15:04"
+this-year-time-format="January 02 15:04"
#
# Width of the sidebar, including the border.
@@ 167,7 171,8 @@ this-year-time-format=2006-01-02 03:04 P
# Template to use for Account tab titles
#
# Default: {{.Account}}
-tab-title-account = {{if .Connected}}{{.Account}}{{else}}{{.Style (print .Account) "dim"}}{{end}}
+#tab-title-account = {{if .Connected}}{{.Account}}{{else}}{{.Style (print .Account) "dim"}}{{end}}
+tab-title-account = {{.Account}} {{if .Exists "INBOX"}}({{if .Unread "INBOX"}}{{.Unread "INBOX"}}{{end}}/{{.Exists "INBOX"}}){{end}}
# Marker to show before a pinned tab's name.
#
@@ 667,7 672,9 @@ text/calendar=calendar
message/delivery-status=colorize
message/rfc822=colorize
#text/html=pandoc -f html -t plain | colorize
-text/html=html | colorize
+text/html=html2text | colorize
+application/pdf=pdftotext - -l 10 -nopgbrk -q - | fmt -w 100
+.filename,~.*\.pdf=pdftotext - -l 10 -nopgbrk -q - | fmt -w 100
#text/*=bat -fP --file-name="$AERC_FILENAME"
#application/x-sh=bat -fP -l sh
#image/*=catimg -w $(tput cols) -
M .config/aerc/binds.conf +13 -6
@@ 12,6 12,7 @@
<C-c> = :prompt 'Quit?' quit<Enter>
<C-q> = :prompt 'Quit?' quit<Enter>
<C-z> = :suspend<Enter>
+<C-f> = :menu -dc fzf :cf<Enter>
[messages]
q = :prompt 'Quit?' quit<Enter>
@@ 19,13 20,11 @@ q = :prompt 'Quit?' quit<Enter>
j = :next<Enter>
<Down> = :next<Enter>
<C-d> = :next 50%<Enter>
-<C-f> = :next 100%<Enter>
<PgDn> = :next 100%<Enter>
k = :prev<Enter>
<Up> = :prev<Enter>
<C-u> = :prev 50%<Enter>
-<C-b> = :prev 100%<Enter>
<PgUp> = :prev 100%<Enter>
g = :select 0<Enter>
G = :select -1<Enter>
@@ 60,7 59,7 @@ S = :read<Enter>:mv Junk<Enter>
H = :read<Enter>:mv INBOX<Enter>
u = :unread<Enter>
a = :archive flat<Enter>
-A = :unmark -a<Enter>:mark -T<Enter>:archive flat<Enter>
+A = :pipe khard add-email -a gmail<Enter>
C = :compose<Enter>
m = :compose<Enter>
@@ 104,17 103,20 @@ ps = :patch switch <Tab>
[messages:folder=Trash]
d = :prompt 'Really delete this message?' 'delete-message'<Enter>
+[messages:account=Netlandish]
+A = :pipe khard add-email -a netlandish<Enter>
+
[view]
/ = :toggle-key-passthrough<Enter>/
q = :close<Enter>
O = :open<Enter>
o = :open<Enter>
-S = :save<space>~/Downloads/<space>
+S = :save<space>
| = :pipe<space>
D = :delete<Enter>
-A = :archive flat<Enter>
+A = :pipe khard add-email -a gmail<Enter>
-<C-l> = :open-link <space>
+<C-l> = :pipe urlscan<Enter>
f = :forward<Enter>
F = :forward -A<Enter>
@@ 142,6 144,11 @@ K = :prev<Enter>
$ex = <C-x>
<Esc> = :toggle-key-passthrough<Enter>
+<C-u> = :pipe urlscan<Enter>
+
+[view:account=Netlandish]
+A = :pipe khard add-email -a netlandish<Enter>
+
[compose]
# Keybindings used when the embedded terminal is not selected in the compose
# view