summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/.local/bin/mutt_attach7
-rw-r--r--mutt/.mutt/muttrc2
2 files changed, 9 insertions, 0 deletions
diff --git a/bin/.local/bin/mutt_attach b/bin/.local/bin/mutt_attach
new file mode 100755
index 0000000..e5ddbad
--- /dev/null
+++ b/bin/.local/bin/mutt_attach
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+
+files=$(vifm "$HOME" --choose-files -)
+
+for file in $files; do
+ tmux send-keys -t email.0 "a$file "
+done
diff --git a/mutt/.mutt/muttrc b/mutt/.mutt/muttrc
index de98ad0..95faa6f 100644
--- a/mutt/.mutt/muttrc
+++ b/mutt/.mutt/muttrc
@@ -87,6 +87,8 @@ bind pager j next-entry
bind pager k previous-entry
bind pager R group-reply
+macro compose \CA "!mutt_attach\n"
+
# Hooks
folder-hook 'Work*' 'source ~/.mutt/id_work'
folder-hook 'Personal*' 'source ~/.mutt/id_personal'