[SPAM?] Re: preview images before attaching

2016-09-05 Thread Samir Benmendil

On Sep 05, 2016 at 8:46, Peter P. wrote:

I am frequently attaching images to emails in mutt and wonder if there
is a way I can preview them when selecting the files, but before
actually attaching them. I imagine selecting/entering the path to the
file to be attached, but then pressing TAB once more, or using any other
keypress, launching eg. imagemagick's display to show the image briefly.
I use a combination of vim, the CheckAttach plugin [0] and ranger [1] 
and w3mimgdisplay. [2]


Basically you simply edit your mail, run :AttachFile and select the file 
in ranger which can show you a preview on the side.


[0] https://github.com/vim-scripts/CheckAttach.vim
[1] http://nongnu.org/ranger/
[2] https://github.com/ranger/ranger/wiki/Image-Previews


signature.asc
Description: PGP signature


Re: preview images before attaching

2016-09-05 Thread lists
On Mon, Sep 05, 2016 at 08:46:44AM -0400, Peter P. wrote:
> I am frequently attaching images to emails in mutt and wonder if there
> is a way I can preview them when selecting the files, but before
> actually attaching them. I imagine selecting/entering the path to the
> file to be attached, but then pressing TAB once more, or using any
> other keypress, launching eg. imagemagick's display to show the image
> briefly.

I have in my .mailcap:

  image/*; mutt_bgrun sxiv -fbz100 '%s'

Then, in mutt's Compose view,  is bound to view-attach --
selecting an attachment and hitting return opens the file in the
specified application _after_ attaching the file.

In the Directory view when navigation to an attachment,  is bound
to view-file and does the same _before_ attaching the file.

This works for every mimetype you have a suitable viewer for.


preview images before attaching

2016-09-05 Thread Peter P.
I am frequently attaching images to emails in mutt and wonder if there
is a way I can preview them when selecting the files, but before
actually attaching them. I imagine selecting/entering the path to the
file to be attached, but then pressing TAB once more, or using any other
keypress, launching eg. imagemagick's display to show the image briefly.

This might be a funny idea, but I thought if one software could do it,
it would be mutt. ;)

thanks for all ideas/comments!
Peter