[neomutt-users] multiline url links in emails

Ismael Bouya ismael.bouya at normalesup.org
Thu Jan 16 10:59:01 CET 2020

Hi Kenneth,

> (..)
> Note that I replaced urlview with urlscan. On my system I now get urls with context.

urlscan is very nice indeed, note that you don’t need to pipe_decode :
he’s able to do it by itself.

However I was still a bit dissatisfied, as I found no builtin way to
just show the whole url in my terminal without decoration so that I can
simply copy it with whatever mouse I want (the --run "echo {}" argument
didn’t work). The program can run complex commands but not just showing
the url...

I finally managed something with the help of tmux, if anyone is interested:

macro index,pager \Cb "<pipe-message>urlscan --run \"tmux set-buffer {} \\; split-window 'tmux show-buffer ; echo; cat; tmux wait-for -S neomutt_url' \\; resize-pane -Z \\; wait-for neomutt_url\"<enter>"
(Just in case I hit the max width limit: https://paste.ee/p/bAt8h )

This will put the url *raw* in a buffer and show it in an "empty"
buffer, waiting for you to press ctrl+D to quit.

Smart programs that cannot do dumb things are a bit annoying :grin:

Thanks all for your contribution!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://mailman.neomutt.org/pipermail/neomutt-users-neomutt.org/attachments/20200116/e716fe7b/attachment.sig>

More information about the neomutt-users mailing list