Re: Macro problem: unset wait_key; !do_script; set wait_key
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thursday, February 28 at 10:14 PM, quoth Ad. Teixera:
>Hello,
>This macro is working:
>macro index <ESC>f ":unset wait_key\n;!~/myScript\n;:set wait_key\n" \
> "menu for fetching mail"
>
>this one works also, but it is not setting the wait_key at the end of the
>macro.
>macro attach <ESC>b ":unset wait_key\n|cat >/tmp/tmp.html; \
> opera --remote 'openURL(/tmp/tmp.html,new-page)' &\n; \
> :set wait_key\n" "Pipe to Browser"
It's the extra semicolon at the end of the opera line.
But you also don't want all those spaces in the middle of your macro
(mutt doesn't know you want it to ignore them):
macro attach <ESC>b ":unset wait_key\n|cat >/tmp/tmp.html;\
opera --remote 'openURL(/tmp/tmp.html,new-page)' &\n\
:set wait_key\n" "Pipe to Browser"
While you're at it, you probably want to stop using keys and start
using function names directly. Like so:
macro attach <ESC>b "<enter-command>unset wait_key<enter>\
<pipe-message>cat >/tmp/tmp.html; \
opera --remote 'openURL(/tmp/tmp.html,new-page)' &<enter>\
<enter-command>set wait_key<enter>" "Pipe to Browser"
~Kyle
- --
Backups are for wimps. Real men upload their data to an FTP site and
have everyone else mirror it.
-- Linus Torvalds
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iD8DBQFHxzg1BkIOoMqOI14RAryuAKCXBNPusGHMQ8w2zaK++J5ZH7epdQCg2NoD
/ClI5M0hey4MSmm3cuek7Dk=
=c2aq
-----END PGP SIGNATURE-----