# HG changeset patch # User Peter Sanchez # Date 1721334171 21600 # Thu Jul 18 14:22:51 2024 -0600 # Node ID 7284610c7f6b893462c1e302da9aa6ca8fcade45 # Parent dc4fe72536ad790021d4660b2a8d73d4a1f1a923 Some aerc config updates diff --git a/.config/aerc/aerc.conf b/.config/aerc/aerc.conf --- a/.config/aerc/aerc.conf +++ b/.config/aerc/aerc.conf @@ -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 @@ # 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 @@ # 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 @@ 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) - diff --git a/.config/aerc/binds.conf b/.config/aerc/binds.conf --- a/.config/aerc/binds.conf +++ b/.config/aerc/binds.conf @@ -12,6 +12,7 @@ = :prompt 'Quit?' quit = :prompt 'Quit?' quit = :suspend + = :menu -dc fzf :cf [messages] q = :prompt 'Quit?' quit @@ -19,13 +20,11 @@ j = :next = :next = :next 50% - = :next 100% = :next 100% k = :prev = :prev = :prev 50% - = :prev 100% = :prev 100% g = :select 0 G = :select -1 @@ -60,7 +59,7 @@ H = :read:mv INBOX u = :unread a = :archive flat -A = :unmark -a:mark -T:archive flat +A = :pipe khard add-email -a gmail C = :compose m = :compose @@ -104,17 +103,20 @@ [messages:folder=Trash] d = :prompt 'Really delete this message?' 'delete-message' +[messages:account=Netlandish] +A = :pipe khard add-email -a netlandish + [view] / = :toggle-key-passthrough/ q = :close O = :open o = :open -S = :save~/Downloads/ +S = :save | = :pipe D = :delete -A = :archive flat +A = :pipe khard add-email -a gmail - = :open-link + = :pipe urlscan f = :forward F = :forward -A @@ -142,6 +144,11 @@ $ex = = :toggle-key-passthrough + = :pipe urlscan + +[view:account=Netlandish] +A = :pipe khard add-email -a netlandish + [compose] # Keybindings used when the embedded terminal is not selected in the compose # view