diff --git a/.config/aerc/binds.conf b/.config/aerc/binds.conf index b6f15166..ab037459 100644 --- a/.config/aerc/binds.conf +++ b/.config/aerc/binds.conf @@ -200,7 +200,6 @@ v = :preview # Preview message 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 # Pick attachments with Yazi dt = :detach # Remove attachment H = :multipart text/html # Convert Markdown to HTML diff --git a/.config/aerc/paste-attachment.sh b/.config/aerc/paste-attachment.sh index 164669e0..6aaf02d8 100755 --- a/.config/aerc/paste-attachment.sh +++ b/.config/aerc/paste-attachment.sh @@ -1,12 +1,9 @@ #!/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 pasted if wl-paste --list-types | grep -qv '^text/plain$'; then - notify-send "Non-text type." + # clipboard contains a file tempdir=$(mktemp -d) wl-paste >temp extension=$(grep -E "^$(wl-paste --list-types)" /etc/mime.types | awk '{print $2}') @@ -25,6 +22,7 @@ if wl-paste --list-types | grep -qv '^text/plain$'; then ;; esac else + # clipboard contains a string (treat as path) read -r -p "$(echo -n "Your clipboard contains $(wl-paste), which will be attached as a file path. Confirm (y/n): " >&2)" confirm case "$confirm" in y) @@ -34,5 +32,4 @@ else exit 1 ;; esac - fi diff --git a/.config/yazi/bookmark b/.config/yazi/bookmark index dcfa0114..bf39f875 100644 --- a/.config/yazi/bookmark +++ b/.config/yazi/bookmark @@ -2,9 +2,9 @@ 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 +Pictures /home/fic/Pictures p Downloads /home/fic/Downloads D Downloads /home/fic/Downloads/ D -Documents /home/fic/Documents/ d Documents /home/fic/Documents d +Documents /home/fic/Documents/ d