On Thu, Feb 28, 2008 at 04:39:49PM -0600, Kyle Wheeler wrote: > 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
Thank you a lot Kyle, here are the complete macros, which opens html messages and attachments in firefox or opera #---- open a attachment in an opera's new-tab macro attach <ESC>o "<enter-command>unset wait_key<enter><pipe-message>\ cat >/tmp/tmp.html;\ opera --remote 'openURL(/tmp/tmp.html,new-page)' 2>/dev/null >/dev/null &\ <enter><enter-command>set wait_key<enter>" "Pipe to Opera" #---- open a html message in an opera's new-tab macro pager <ESC>o "<enter-command>unset wait_key<enter><view-attachments>\ <pipe-message>cat >/tmp/tmp.html;\ opera --remote 'openURL(/tmp/tmp.html,new-page)' 2>/dev/null >/dev/null &\ <enter><enter-command>set wait_key<enter><exit>" "Pipe to Opera" #---- open a attachment in a firefoxes new tab macro attach <ESC>i "<enter-command>unset wait_key<enter><pipe-message>\ cat >/tmp/tmp.html;firefox /tmp/tmp.html &<enter>\ <enter-command>set wait_key<enter>" "Pipe to Firefox" #---- open a html message in a firefoxes new-tab macro pager <ESC>i "<enter-command>unset wait_key<enter><view-attachments>\ <pipe-message>cat >/tmp/tmp.html;firefox /tmp/tmp.html &<enter>\ <enter-command>set wait_key<enter><exit>" "Pipe to Firefox" thanks again Adriana
