Bind and Macro problem
OS: Xubuntu 15.10 mutt: 1.5.23 I have been running mutt on a Solaris system for years. I am now transitioning to a Ubuntu machine. I am using the same Sun Type 6 keyboard on moth machines, however, on the new system these are some escape sequences issued by keys that include a semicolon which did not occur on the Sun system. Here is an example: Keypad 5 Key:^[[20;2~ In the .muttrc file, these sequences cannot be unquoted so I have entries like: bind generic "[20;2~"select-entry bind attach"[20;2~"view-attach However, none of the bindings or macros that have ";" in them are defined when mutt runs. I have tried various alternatives in the .muttrc file such as: [20\;2~ and "^[[20;2~" but nothing works. Furthermore, when I am in mutt and hit "?", the bindings escape sequences are properly shown in the list! I'm running mutt in an xfce4-terminal but I get the same results when I use an xterm. What is the trick for getting these escape sequences recognized? Regards, -- Jeff Small
Re: Macro problem: unset wait_key; !do_script; set wait_key
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 b "unset wait_key\ > cat >/tmp/tmp.html; \ > opera --remote 'openURL(/tmp/tmp.html,new-page)' &\ > set wait_key" "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 o "unset wait_key\ cat >/tmp/tmp.html;\ opera --remote 'openURL(/tmp/tmp.html,new-page)' 2>/dev/null >/dev/null &\ set wait_key" "Pipe to Opera" # open a html message in an opera's new-tab macro pager o "unset wait_key\ cat >/tmp/tmp.html;\ opera --remote 'openURL(/tmp/tmp.html,new-page)' 2>/dev/null >/dev/null &\ set wait_key" "Pipe to Opera" # open a attachment in a firefoxes new tab macro attach i "unset wait_key\ cat >/tmp/tmp.html;firefox /tmp/tmp.html &\ set wait_key" "Pipe to Firefox" # open a html message in a firefoxes new-tab macro pager i "unset wait_key\ cat >/tmp/tmp.html;firefox /tmp/tmp.html &\ set wait_key" "Pipe to Firefox" thanks again Adriana
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 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 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 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 b "unset wait_key\ cat >/tmp/tmp.html; \ opera --remote 'openURL(/tmp/tmp.html,new-page)' &\ set wait_key" "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-
Macro problem: unset wait_key; !do_script; set wait_key
Hello, This macro is working: macro index 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 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" I'm working with: Mutt 1.5.17+20080114 (2008-01-14) on a debian sid Thank you, Adriana
Re: macro problem
On 05Mar2007 17:25, Michelle Konzack <[EMAIL PROTECTED]> wrote: | I have: | [ '/home/michelle.konzack/.mutt/macros' ]-- | macro index \cb "|urlview\n" | macro index \cf ':`tdmuttsettings --display-filter`'"\n" | macro index \cm ':`tdmuttmailboxes`'"\n" | --- [...] | but the third one does not work. It is still ignored and ^M is | "next_line" and I can not redefine it. How can this be? Ctrl-m is what the [enter] key sends. Mutt may grab this before any macro processing. -- Cameron Simpson <[EMAIL PROTECTED]> DoD#743 http://www.cskk.ezoshosting.com/cs/ Indeed! But do not reject these teachings as false because I am crazy. The reason that I am crazy is because they are true. - Malaclypse the Younger
macro problem
Hello, I have: [ '/home/michelle.konzack/.mutt/macros' ]-- macro index \cb "|urlview\n" macro index \cf ':`tdmuttsettings --display-filter`'"\n" macro index \cm ':`tdmuttmailboxes`'"\n" --- The two first are working where the output of "tdmuttsettings" is set display_filter= but the third one does not work. It is still ignored and ^M is "next_line" and I can not redefine it. How can this be? Then, if I use \cf for the third one it is working and it output correctly source /home/michelle.konzack/.mutt/tdmuttmailboxes_... (I have splited my "mailboxes" since over imap it is impossibel to whatch 2300 at once) Now there is a problem, since if I call ^M it ADD new mailboxes to the list which is non-desirable. So I have tried: macro index \cf ':unmailboxes *:`tdmuttmailboxes`'"\n" but it seems not to work. Where is the missing point? Greetings Michelle Konzack Systemadministrator Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # Michelle Konzack Apt. 917 ICQ #328449886 50, rue de Soultz MSM LinuxMichi 0033/6/6192519367100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
Re: macro problem
On Tue, 16 Apr 2002, Nicolas Rachinsky wrote: > * "Thomas E. Dickey" <[EMAIL PROTECTED]> [2002-04-16 15:45:37 -0400]: > > On Tue, 16 Apr 2002, Nicolas Rachinsky wrote: > > > PS: using FreeBSD 4.5 with a termcap entry based on xterm-color. > > > > FreeBSD maintainers (?) insist on using "xterm-color", though it does not > > closely match XFree86 xterm. It's an faq... > > > > http://invisible-island.net/xterm/xterm.faq.html > > > > There is a better termcap file distributed with xterm, btw. > > I do NOT use xterm, I use putty. > > xterm-color seems to work better with putty, either with FreeBSD and > SuSE Linux. "better" isn't good enough if it's still not correct. xterm-color is a generic entry, targeted at people who either don't know what their terminal can do, or don't care much. I wrote a putty terminfo some months ago (ncurses 2007, prompted by an earlier thread). There are about 2 dozen differences between that and "xterm-color". ymmv. -- T.E.Dickey <[EMAIL PROTECTED]> http://invisible-island.net ftp://invisible-island.net
Re: macro problem
Nicolas Rachinsky ([EMAIL PROTECTED]) muttered: > * Michael Tatge <[EMAIL PROTECTED]> [2002-04-16 20:58:08 +0200]: > > Nicolas Rachinsky ([EMAIL PROTECTED]) muttered: > > > * Eduardo Gargiulo <[EMAIL PROTECTED]> [2002-04-16 14:07:07 -0300]: > > > > i'm not right on the mutt box. I'm connected through ssh using PuTTY > > > > client. > > > > > > My settings are: > > > function keys and keypad=Xterm R6 > > > > Use VT100+ > > What's better with VT100+? Everything I needed here seems to work > fine. Sorry, I mixed that up. I thought you where the one who had problems. Never change a running system. :) Michael -- "By golly, I'm beginning to think Linux really *is* the best thing since sliced bread." (By Vance Petree, Virginia Power) PGP-Key: http://www-stud.ims.uni-stuttgart.de/~tatgeml/public.key
Re: macro problem
* "Thomas E. Dickey" <[EMAIL PROTECTED]> [2002-04-16 15:45:37 -0400]: > On Tue, 16 Apr 2002, Nicolas Rachinsky wrote: > > PS: using FreeBSD 4.5 with a termcap entry based on xterm-color. > > FreeBSD maintainers (?) insist on using "xterm-color", though it does not > closely match XFree86 xterm. It's an faq... > > http://invisible-island.net/xterm/xterm.faq.html > > There is a better termcap file distributed with xterm, btw. I do NOT use xterm, I use putty. xterm-color seems to work better with putty, either with FreeBSD and SuSE Linux. Nicolas
Re: macro problem
On Tue, 16 Apr 2002, Nicolas Rachinsky wrote: > * Michael Tatge <[EMAIL PROTECTED]> [2002-04-16 20:58:08 +0200]: > > Nicolas Rachinsky ([EMAIL PROTECTED]) muttered: > > > * Eduardo Gargiulo <[EMAIL PROTECTED]> [2002-04-16 14:07:07 -0300]: > > > > i'm not right on the mutt box. I'm connected through ssh using PuTTY > > > > client. > > > > > > My settings are: > > > function keys and keypad=Xterm R6 > > > > Use VT100+ > > What's better with VT100+? Everything I needed here seems to work > fine. > > Nicolas > > PS: using FreeBSD 4.5 with a termcap entry based on xterm-color. FreeBSD maintainers (?) insist on using "xterm-color", though it does not closely match XFree86 xterm. It's an faq... http://invisible-island.net/xterm/xterm.faq.html There is a better termcap file distributed with xterm, btw. -- T.E.Dickey <[EMAIL PROTECTED]> http://invisible-island.net ftp://invisible-island.net
Re: macro problem
Nicolas Rachinsky <[EMAIL PROTECTED]> wrote: > * Eduardo Gargiulo <[EMAIL PROTECTED]> [2002-04-16 14:07:07 -0300]: > > i'm not right on the mutt box. I'm connected through ssh using PuTTY > > client. > > My settings are: > function keys and keypad=Xterm R6 > > > > Have you checked to see how it would pass a keypress of f1 outside of mutt? > > > What if you > > > > > > echo ^V | cat -v > > > > ^[[11~ (hmmm) > > OP > here I'd set keypad=Xterm R6 and echo ^V shows ^[OP == f1 macro is working!! thanks all!! -- Eduardo Gargiulo ejg(at)ar.homelinux.org msg27279/pgp0.pgp Description: PGP signature
Re: macro problem
* Michael Tatge <[EMAIL PROTECTED]> [2002-04-16 20:58:08 +0200]: > Nicolas Rachinsky ([EMAIL PROTECTED]) muttered: > > * Eduardo Gargiulo <[EMAIL PROTECTED]> [2002-04-16 14:07:07 -0300]: > > > i'm not right on the mutt box. I'm connected through ssh using PuTTY > > > client. > > > > My settings are: > > function keys and keypad=Xterm R6 > > Use VT100+ What's better with VT100+? Everything I needed here seems to work fine. Nicolas PS: using FreeBSD 4.5 with a termcap entry based on xterm-color.
Re: macro problem
Nicolas Rachinsky ([EMAIL PROTECTED]) muttered: > * Eduardo Gargiulo <[EMAIL PROTECTED]> [2002-04-16 14:07:07 -0300]: > > i'm not right on the mutt box. I'm connected through ssh using PuTTY > > client. > > My settings are: > function keys and keypad=Xterm R6 Use VT100+ HTH, Michael -- "If you want to travel around the world and be invited to speak at a lot of different places, just write a Unix operating system." (By Linus Torvalds) PGP-Key: http://www-stud.ims.uni-stuttgart.de/~tatgeml/public.key
Re: macro problem
* David T-G <[EMAIL PROTECTED]> [2002-04-16 13:42:51 -0500]: > % > % > Just for fun, what if you leave your macro binding but manually > % > type my key sequence? > % > % 'Key is not bound' > > My guess is that we've exhausted the terminal side and it has something > to do with the termcap/terminfo on your Linux box. Unfortunately, we've > also exhausted my capabilities :-) Now let's hope that one of the term > wizards will step up with some ideas... Are you using termcap? Nicolas
Re: macro problem
* Eduardo Gargiulo <[EMAIL PROTECTED]> [2002-04-16 14:07:07 -0300]: > i'm not right on the mutt box. I'm connected through ssh using PuTTY > client. My settings are: function keys and keypad=Xterm R6 > > Have you checked to see how it would pass a keypress of f1 outside of mutt? > > What if you > > > > echo ^V | cat -v > > ^[[11~ (hmmm) OP here Nicolas
Re: macro problem
Eduardo -- ...and then Eduardo Gargiulo said... % % David T-G <[EMAIL PROTECTED]> wrote: % > % ... % > and the macros work for me... When I go to the settings for keyboard, I % > have Function keys set to send ESC(n~ rather than Linux, Xterm, or % > VT400... How about you? % % idem settings, idem PuTTY version but on W2K. That part certainly shouldn't matter. % % > Just for fun, what if you leave your macro binding but manually % > type my key sequence? % % 'Key is not bound' My guess is that we've exhausted the terminal side and it has something to do with the termcap/terminfo on your Linux box. Unfortunately, we've also exhausted my capabilities :-) Now let's hope that one of the term wizards will step up with some ideas... % % -- % Eduardo Gargiulo % ejg(at)ar.homelinux.org HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg! msg27271/pgp0.pgp Description: PGP signature
Re: macro problem
David T-G <[EMAIL PROTECTED]> wrote: > % > % > Have you checked to see how it would pass a keypress of f1 outside of mutt? > % > What if you > % > > % > echo ^V | cat -v > % > % ^[[11~ (hmmm) > > OK... When I send an F1 from my NT4 box running Putty v0.51 I get > > ^[OP > > and the macros work for me... When I go to the settings for keyboard, I > have Function keys set to send ESC(n~ rather than Linux, Xterm, or > VT400... How about you? idem settings, idem PuTTY version but on W2K. > Just for fun, what if you leave your macro binding but manually > type my key sequence? 'Key is not bound' -- Eduardo Gargiulo ejg(at)ar.homelinux.org msg27270/pgp0.pgp Description: PGP signature
Re: macro problem
Eduardo -- ...and then Eduardo Gargiulo said... % % David T-G <[EMAIL PROTECTED]> wrote: ... % > % > Quite interesting. And did you define your ,m macro with a \n at the % > end, or do we *expect* that you'd have to hit return? % % i forgot to append \n. Good enough; we expect it and so we don't worry. % % > Are you coming through a network connection or are you right on the box % > where mutt is running? % % i'm not right on the mutt box. I'm connected through ssh using PuTTY % client. Ah. OK. % % What is your $TERM? % % xterm That certainly ought to work; it works for me. % % > Have you checked to see how it would pass a keypress of f1 outside of mutt? % > What if you % > % > echo ^V | cat -v % % ^[[11~ (hmmm) OK... When I send an F1 from my NT4 box running Putty v0.51 I get ^[OP and the macros work for me... When I go to the settings for keyboard, I have Function keys set to send ESC(n~ rather than Linux, Xterm, or VT400... How about you? Just for fun, what if you leave your macro binding but manually type my key sequence? % % -- % Eduardo Gargiulo % ejg(at)ar.homelinux.org HTH & HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg! msg27269/pgp0.pgp Description: PGP signature
Re: macro problem
David T-G <[EMAIL PROTECTED]> wrote: > % > Let's see if you can define any macros at all. What if you change the > % > key from to ,m or some such; does it show up then? > % > % ok. With f1 or F1 the macro didn't work, but with ,m yes! I see a > % message 'Shell command: less /usr/local/doc/mutt/manual.txt' and when > % hit enter, the manual appear. > > Quite interesting. And did you define your ,m macro with a \n at the > end, or do we *expect* that you'd have to hit return? i forgot to append \n. > Are you coming through a network connection or are you right on the box > where mutt is running? i'm not right on the mutt box. I'm connected through ssh using PuTTY client. What is your $TERM? xterm > Have you checked to see how it would pass a keypress of f1 outside of mutt? > What if you > > echo ^V | cat -v ^[[11~ (hmmm) -- Eduardo Gargiulo ejg(at)ar.homelinux.org msg27267/pgp0.pgp Description: PGP signature
Re: macro problem
Eduardo -- ...and then Eduardo Gargiulo said... % % David T-G <[EMAIL PROTECTED]> wrote: % > % > ...and then Eduardo Gargiulo said... % > % ... % > OK. But are they in the system Muttrc file? % % yes. Now, i have removed the macros from muttrc, but they are still not % working. It was unlikely, but it doesn't really make sense to have them in two places anyway, so it's a benefit overall. % % > Let's see if you can define any macros at all. What if you change the % > key from to ,m or some such; does it show up then? % % ok. With f1 or F1 the macro didn't work, but with ,m yes! I see a % message 'Shell command: less /usr/local/doc/mutt/manual.txt' and when % hit enter, the manual appear. Quite interesting. And did you define your ,m macro with a \n at the end, or do we *expect* that you'd have to hit return? Are you coming through a network connection or are you right on the box where mutt is running? What is your $TERM? Have you checked to see how it would pass a keypress of f1 outside of mutt? What if you echo ^V | cat -v at the command line, where that's a ctrl-v and then your f1 key? Maybe you can fake the f1 key with an esc-something macro once you see what mutt, just like your shell, is getting. % % -- % Eduardo Gargiulo % ejg(at)ar.homelinux.org HTH & HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg! msg27265/pgp0.pgp Description: PGP signature
Re: macro problem
David T-G <[EMAIL PROTECTED]> wrote: > Eduardo -- > > ...and then Eduardo Gargiulo said... > % > % David T-G <[EMAIL PROTECTED]> wrote: > % > > % > That usually goes in the system Muttrc file. Are they in there, too? > % > % i added manually. > > OK. But are they in the system Muttrc file? yes. Now, i have removed the macros from muttrc, but they are still not working. > % > % > How very odd. So it doesn't show up in the help listing under '?', I > % > presume. > % > % right. > > OK. > > > % > % > What happens if you paste in ':macro index ...' in a running mutt? Is it > % > bound then? > % > % no. > > Well, that's certainly a place to start. > > What if you start mutt with no muttrc file? Try > > mutt -F /dev/null > > and then try pasting in the macro. I wonder if there is some silly > interaction between the system Muttrc and your muttrc, though I think it > unlikely. > > Let's see if you can define any macros at all. What if you change the > key from to ,m or some such; does it show up then? ok. With f1 or F1 the macro didn't work, but with ,m yes! I see a message 'Shell command: less /usr/local/doc/mutt/manual.txt' and when hit enter, the manual appear. -- Eduardo Gargiulo ejg(at)ar.homelinux.org msg27259/pgp0.pgp Description: PGP signature
Re: macro problem
Thorsten, et al -- ...and then Thorsten Haude said... % % * Eduardo Gargiulo <[EMAIL PROTECTED]> [02-04-16 17:20]: % ># Show documentation when pressing F1 % >macro generic "!less /usr/local/doc/mutt/manual.txt\n" "Show Mutt documentation" % ^ % >but when i hit F1, the macro don't work and mutt says 'Key is not % ^ % I use and that works. I thought of that but checked my Muttrc and it has f1 (lower case). Ah, well :-( % % Thorsten % -- % There's no such thing as a stupid question. Only stupid people. % - User Friendly :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg! msg27257/pgp0.pgp Description: PGP signature
Re: macro problem
Eduardo -- ...and then Eduardo Gargiulo said... % % David T-G <[EMAIL PROTECTED]> wrote: % > % > That usually goes in the system Muttrc file. Are they in there, too? % % i added manually. OK. But are they in the system Muttrc file? % % > How very odd. So it doesn't show up in the help listing under '?', I % > presume. % % right. OK. % % > What happens if you paste in ':macro index ...' in a running mutt? Is it % > bound then? % % no. Well, that's certainly a place to start. What if you start mutt with no muttrc file? Try mutt -F /dev/null and then try pasting in the macro. I wonder if there is some silly interaction between the system Muttrc and your muttrc, though I think it unlikely. Let's see if you can define any macros at all. What if you change the key from to ,m or some such; does it show up then? % % > % The macro runs ok from command line. % % both. Just making sure I had a clear understanding. Thanks. % % -- % Eduardo Gargiulo % ejg(at)ar.homelinux.org HTH & HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg! msg27256/pgp0.pgp Description: PGP signature
Re: macro problem
* Eduardo Gargiulo <[EMAIL PROTECTED]> [2002-04-16 12:20:32 -0300]: > I have the following lines in my muttrc > > # Show documentation when pressing F1 > macro generic "!less /usr/local/doc/mutt/manual.txt\n" "Show Mutt documentation" > macro index"!less /usr/local/doc/mutt/manual.txt\n" "Show Mutt documentation" > macro pager"!less /usr/local/doc/mutt/manual.txt\n" "Show Mutt documentation" > > but when i hit F1, the macro don't work and mutt says 'Key is not > bound'. How can i fix this? > The macro runs ok from command line. Is TERM set correctly? What type of terminal are you using? Nicolas
Re: macro problem
Thorsten Haude <[EMAIL PROTECTED]> wrote: > * Eduardo Gargiulo <[EMAIL PROTECTED]> [02-04-16 17:20]: > ># Show documentation when pressing F1 > >macro generic "!less /usr/local/doc/mutt/manual.txt\n" "Show Mutt >documentation" > ^ > >but when i hit F1, the macro don't work and mutt says 'Key is not > ^ > I use and that works. I tryied it too, but it didn't work. -- Eduardo Gargiulo ejg(at)ar.homelinux.org msg27253/pgp0.pgp Description: PGP signature
Re: macro problem
David T-G <[EMAIL PROTECTED]> wrote: > > That usually goes in the system Muttrc file. Are they in there, too? i added manually. > How very odd. So it doesn't show up in the help listing under '?', I > presume. right. > What happens if you paste in ':macro index ...' in a running mutt? Is it > bound then? no. > % The macro runs ok from command line. both. -- Eduardo Gargiulo ejg(at)ar.homelinux.org
Re: macro problem
* Eduardo Gargiulo <[EMAIL PROTECTED]> [02-04-16 17:20]: ># Show documentation when pressing F1 >macro generic "!less /usr/local/doc/mutt/manual.txt\n" "Show Mutt documentation" ^ >but when i hit F1, the macro don't work and mutt says 'Key is not ^ I use and that works. Thorsten -- There's no such thing as a stupid question. Only stupid people. - User Friendly msg27251/pgp0.pgp Description: PGP signature
Re: macro problem
Eduardo -- ...and then Eduardo Gargiulo said... % % Hi all. Hello! % % I have the following lines in my muttrc That usually goes in the system Muttrc file. Are they in there, too? % % # Show documentation when pressing F1 % macro generic "!less /usr/local/doc/mutt/manual.txt\n" "Show Mutt documentation" % macro index"!less /usr/local/doc/mutt/manual.txt\n" "Show Mutt documentation" % macro pager"!less /usr/local/doc/mutt/manual.txt\n" "Show Mutt documentation" % % but when i hit F1, the macro don't work and mutt says 'Key is not % bound'. How can i fix this? How very odd. So it doesn't show up in the help listing under '?', I presume. What happens if you paste in ':macro index ...' in a running mutt? Is it bound then? % The macro runs ok from command line. Your shell command line or the mutt command line? % % -- % Eduardo Gargiulo % ejg(at)ar.homelinux.org :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL PROTECTED] http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg! msg27249/pgp0.pgp Description: PGP signature
macro problem
Hi all. I have the following lines in my muttrc # Show documentation when pressing F1 macro generic "!less /usr/local/doc/mutt/manual.txt\n" "Show Mutt documentation" macro index"!less /usr/local/doc/mutt/manual.txt\n" "Show Mutt documentation" macro pager"!less /usr/local/doc/mutt/manual.txt\n" "Show Mutt documentation" but when i hit F1, the macro don't work and mutt says 'Key is not bound'. How can i fix this? The macro runs ok from command line. -- Eduardo Gargiulo ejg(at)ar.homelinux.org msg27247/pgp0.pgp Description: PGP signature
macro problem
hi mutt-users, how can I change the color of a mail for example to brightyellow/red if the message contains "Priority: Urgent" in the header ? this would be very fine :) it should be done automaticly when opening the mailbox. but this is only good if i could change this "flag" or delete this annoying color. I need this mail only marked with these colors if the mail is undone work and urgent. another problem I have is to bind a macro for the compose menu. I want to add with "u" the "Priority: Urgent" field to the header. how ? macro compose "u" "my_hdr Priority: Urgent" doesn´t helped me.. thanks, Marco -- adconsys AG, Karl-Liebknecht-Str. 19, 04107 Leipzig Tel.: 0341-98 474 0 / Fax: 0341-98 474 59 E-Mail: [EMAIL PROTECTED] URL: www.adconsys.de Key Fingerprint: AE02 AA7E CFD1 0A4C 497D 8526 E495 102B A624 3C99
Re: macro problem - have I misunderstood something?
On Fri, Nov 19, 1999 at 11:00:39AM -0500, Brendan Cully wrote: > > Is it not possible to send any/all keys with a macro, does it only > > work for : commands? > > I don't know much about the macro facilities, but I think the problem > is you used the "generic" map. You might want to try binding your key > explicitly to the "index" and/or "pager" maps. ie try something like: > > macro index \e1 c{mailandnews.co.uk} > > and see what you get. Note there is no , so you are given an > opportunity to type out the rest of the path. > That's it, you're right! :-) I think this is a bug, shouldn't :- macro generic \e1 "c{mailandnews.co.uk}" do the same as :- macro index \e1 "c{mailandnews.co.uk}" Thanks for the help anyway, now I can stop typing {mailandnews.co.uk} out in full every time! :-) -- Chris Green ([EMAIL PROTECTED]) Home: [EMAIL PROTECTED] Work: [EMAIL PROTECTED] WWW: http://www.isbd.co.uk/
Re: macro problem - have I misunderstood something?
On Friday, 19 November 1999 at 15:02, Chris Green wrote: > I am trying to set up a simple macro to allow me to execute a > change-folder command with a single keystroke but I can't get it to > work at all. > > However, if I put:- > > macro generic \e1 "c" > > I just get the error message "Key is not bound. Press '?' for help.", > hitting 'c' of course just does what I expect. The help screens show > the macro defined as I would expect. > > Is it not possible to send any/all keys with a macro, does it only > work for : commands? I don't know much about the macro facilities, but I think the problem is you used the "generic" map. You might want to try binding your key explicitly to the "index" and/or "pager" maps. ie try something like: macro index \e1 c{mailandnews.co.uk} and see what you get. Note there is no , so you are given an opportunity to type out the rest of the path. -- Brendan Cully <[EMAIL PROTECTED]> | OLD SKOOL ROOLZ "I'll level with you: | .-_|\ Please let me on your show, I'd | / \ Like a day off school"| Perth ->*.--._/
macro problem - have I misunderstood something?
I am trying to set up a simple macro to allow me to execute a change-folder command with a single keystroke but I can't get it to work at all. If I put:- macro generic \e1 ":color status blue yellow\r" I get exactly what I expect, when I hit 1 the status bar colours change. However, if I put:- macro generic \e1 "c" I just get the error message "Key is not bound. Press '?' for help.", hitting 'c' of course just does what I expect. The help screens show the macro defined as I would expect. Is it not possible to send any/all keys with a macro, does it only work for : commands? -- Chris Green ([EMAIL PROTECTED]) Home: [EMAIL PROTECTED] Work: [EMAIL PROTECTED] WWW: http://www.isbd.co.uk/