I would like to select a folder with ranger, then use it to store several attachments. Thanks to Neomutt-File-Picker, I was able to write a small script to obtain a folder path, and use it to store one attachement. See my fork and (and commit) of Neomutt-File-Picker.
However, I could not make it work for several attachments. Currently, the tagging is not respected if I use the current command:
macro attach S "<shell-escape>bash $HOME/.mutt/neomutt-file-picker/dirpicker<enter><enter-command>source $HOME/.mutt/tmpfile<enter>o"
I'm probably missing some knowledge to operate on a set of tagged attachments.
Can someone help me?