diff --git a/.config/aerc/binds.conf b/.config/aerc/binds.conf index 451f3374..9acacac9 100644 --- a/.config/aerc/binds.conf +++ b/.config/aerc/binds.conf @@ -197,13 +197,15 @@ n = :abort # Abort (discard message, no confirmation) s = :sign # Toggle signing x = :encrypt # Toggle encryption to all recipients v = :preview # Preview message -p = :postpone # Postpone +dr = :postpone # Postpone (save as Draft) q = :choose -o d discard abort -o p postpone postpone # Abort or postpone e = :edit # Edit (body and headers) # a = :attach -m # Add attachment -a = :menu -c 'footclient yazi --chooser-file %f' -b :attach -d = :detach # Remove attachment -H = :multipart text/html +a = :menu -c 'footclient yazi --chooser-file %f' -b :attach # Pick attachments with Yazi +dt = :detach # Remove attachment +H = :multipart text/html # Convert Markdown to HTML +# paste an attachment from clipboard +# p = :menu -c '' [terminal] $noinherit = true diff --git a/.config/aerc/paste-attachment.sh b/.config/aerc/paste-attachment.sh new file mode 100755 index 00000000..d7f8cc01 --- /dev/null +++ b/.config/aerc/paste-attachment.sh @@ -0,0 +1,12 @@ +#!/bin/env bash + +# File to write the path +temp="$1" + +# if the clipboard is plain/text, we assume it's a path +# otherwise, we assume it's a mime-type to be copied +if wl-paste --list-types | grep -qv '^text/plain$'; then + echo "Non-text type." +else + echo "Text type." +fi diff --git a/.config/yazi/bookmark b/.config/yazi/bookmark index dd76b849..d62df124 100644 --- a/.config/yazi/bookmark +++ b/.config/yazi/bookmark @@ -1,10 +1,10 @@ -Videos /home/fic/Videos/ v Videos /home/fic/Videos v +Videos /home/fic/Videos/ v SyncDocuments /home/fic/SyncDocuments s SyncDocuments /home/fic/SyncDocuments/ s Pictures /home/fic/Pictures p Pictures /home/fic/Pictures/ p -Downloads /home/fic/Downloads D Downloads /home/fic/Downloads/ D -Documents /home/fic/Documents/ d +Downloads /home/fic/Downloads D Documents /home/fic/Documents d +Documents /home/fic/Documents/ d diff --git a/.config/yazi/plugins/custom-shell.yazi/yazi_cmd_history b/.config/yazi/plugins/custom-shell.yazi/yazi_cmd_history index ad7b40f0..09a0c76a 100644 --- a/.config/yazi/plugins/custom-shell.yazi/yazi_cmd_history +++ b/.config/yazi/plugins/custom-shell.yazi/yazi_cmd_history @@ -13,3 +13,4 @@ zsh -ic 'mksh attach-picker;exit' zsh -ic 'wl-paste > email_1.png;exit' zsh -ic 'wl-paste > email_2.png;exit' zsh -ic 'ya pack -a h-hg/yamb;exit' +zsh -ic 'mksh paste-attachment;exit'