anufrievroman / neomutt-file-picker

Attach and save files in NeoMutt using Ranger or Vifm as your file picker
13 stars 5 forks source link

Use Vifm for saving attachments #2

Closed gerazov closed 2 years ago

gerazov commented 2 years ago

Awesome plugin :sunglasses:

Can it be made to work for saving attached files as well?

anufrievroman commented 2 years ago

Interesting idea. Actually, I have this problem of saving all the time. Theoretically, it should be possible. Instead of vifm --choose-files would need to use vifm --choose-dir to get the path from vifm and return it as some mutt command. I'll try to look into it.

I'll drop this line here, just to remember the save command:

macro attach E <save-entry><kill-line>/home/gawron/attachments/<enter>

anufrievroman commented 2 years ago

Hi, in #3 it has been implemented, although it requires several confirmations, but it seems to work.