diff --git a/.config/aerc/binds.conf b/.config/aerc/binds.conf index ab037459..aaf25e2b 100644 --- a/.config/aerc/binds.conf +++ b/.config/aerc/binds.conf @@ -157,6 +157,7 @@ $ex = # view $noinherit = true $ex = +# $ex = : $complete = # = :toggle-key-passthrough = :reload diff --git a/.config/aerc/paste-attachment.sh b/.config/aerc/paste-attachment.sh index 02765073..ab822bb8 100755 --- a/.config/aerc/paste-attachment.sh +++ b/.config/aerc/paste-attachment.sh @@ -9,9 +9,10 @@ if wl-paste --list-types | grep -qv '^text/plain$'; then extension=$(grep -E "^$(wl-paste --list-types)" /etc/mime.types | awk '{print $2}') # echo -n "File name: " >&2 # read -r user_input - read -r -p "$(echo -n "Enter file name (extension .$extension will be appended): " >&2)" user_input + read -e -r -p "$(echo -n "Enter file name (extension .$extension will be appended): " >&2)" user_input attachment="$tempdir/$user_input.$extension" - read -r -p "$(echo -n "Your file will be written to $attachment and attached. Confirm (y/n): " >&2)" confirm + read -e -r -p "$(printf "Your file will be written to %s and attached. \n\nConfirm (y/n): " "$attachment" >&2)" confirm + # read -e -r -p "$(echo -n "Your file will be written to $attachment and attached. Confirm (y/n): " >&2)" confirm case "$confirm" in y) wl-paste >"$attachment" @@ -25,14 +26,13 @@ else # clipboard contains a string (treat as path) out=$(wl-paste) if wl-paste --list-types | grep -q '^text/uri-list$' && wl-paste | grep -q '^file://'; then - echo "URI DETECT" out=${out#file://} fi if [ ! -f "$out" ]; then - echo "Your clipboard does not contain a valid file or path!" >&2 + read -e -r -p "$(printf "Your clipboard contains %s, which is not a valid attachment. \n\nPress enter to continue." "$out" >&2)" exit 1 fi - read -r -p "$(echo -n "Your clipboard contains $out, which will be attached as a file path. Confirm (y/n): " >&2)" confirm + read -e -r -p "$(printf "Your clipboard contains %s, which will be attached as a path. \n\nConfirm (y/n): " "$out" >&2)" confirm case "$confirm" in y) echo "$out" diff --git a/.config/aerc/temp b/.config/aerc/temp index bb9eb10f..677d5bc5 100644 Binary files a/.config/aerc/temp and b/.config/aerc/temp differ