Re: I how to customize the help line on top

2014-04-20 Thread Maurice McCarthy
Yeah,  you are right, thanks. I was like reverse MIdas yesterday.
Everything I touched turned to shit. The Lab Tech said she'd never
heard me swear before.

M

On 19/04/2014, Gary Johnson  wrote:

>
> The question was not whether one can customize key bindings but
> whether those key bindings can be displayed in the top line.
>
> I'm pretty sure but not positive that that can't be done.
>
> Regards,
> Gary
>
>


Re: Using $display_filter with $hdr_order

2014-04-20 Thread Chris Down
Erik Christiansen writes:
> Ahh, then another small tweak is required, to display the needed index
> info in the pager view:
> 
> set pager_index_lines=6# Local thread view at top of display.
> 
> Not only does that show 5 index lines, ending with that for the
> currently paged post, but also the index view status line, so that we
> have the maillist name at the top, and poster and subject at the bottom.
> 
> The partial index view highlights the currently paged post, and the
> local time is displayed without the need to 'i' out and  back in.
> 
> Are you still sure that it is necessary to munge mails? ;-)

Yes, that's not at all what I'm looking for. Thanks though.


pgpRWtK0bko4n.pgp
Description: PGP signature


Re: I how to customize the help line on top

2014-04-20 Thread Maurice McCarthy
OK I did an experiment and it worked. When you open mutt it shows the
index view and that displays the default bindings that Michael Kaiser
asked about. If we change the default bindings in /etc/Muttrc or
~/.muttrc then the top line should alter as requested.

I only have access to a Windows 7 pc at the moment so I got a copy of
win32mutt (i.e. mutt-1.4) and put these two commands at the bottom of
/etc/Muttrc

bind index x quit
bind index q help

Now on launching mutt the top of line of the display shows:
x:Quit d:Del 

The first bind command does not work on its own as that leaves q still
functioning correctly. Now I feel like a smart-alec.

M


Re: I how to customize the help line on top

2014-04-20 Thread Chris Bannister
On Sun, Apr 20, 2014 at 10:48:02AM +0100, Maurice McCarthy wrote:
> OK I did an experiment and it worked. When you open mutt it shows the
> index view and that displays the default bindings that Michael Kaiser
> asked about. If we change the default bindings in /etc/Muttrc or
> ~/.muttrc then the top line should alter as requested.
> 
> I only have access to a Windows 7 pc at the moment so I got a copy of
> win32mutt (i.e. mutt-1.4) and put these two commands at the bottom of
> /etc/Muttrc
> 
> bind index x quit
> bind index q help
> 
> Now on launching mutt the top of line of the display shows:
> x:Quit d:Del 
> 
> The first bind command does not work on its own as that leaves q still
> functioning correctly. Now I feel like a smart-alec.

Unfortunately, that is still not what is being asked. :)  For example,
could you put the 'compose mail' command in the menu bar and show the
binding?

-- 
"If you're not careful, the newspapers will have you hating the people
who are being oppressed, and loving the people who are doing the 
oppressing." --- Malcolm X


Re: I how to customize the help line on top

2014-04-20 Thread Maurice McCarthy
On 20/04/2014, Chris Bannister  wrote:
>>
>> bind index x quit
>> bind index q help
>>
>
> Unfortunately, that is still not what is being asked. :)  For example,
> could you put the 'compose mail' command in the menu bar and show the
> binding?
>

OK you got me. I found this in the source code for curs_main.c (not
that I understand source code mind)

static const struct mapping_t IndexHelp[] = {
  { N_("Quit"),  OP_QUIT },
  { N_("Del"),   OP_DELETE },
  { N_("Undel"), OP_UNDELETE },
  { N_("Save"),  OP_SAVE },
  { N_("Mail"),  OP_MAIL },
  { N_("Reply"), OP_REPLY },
  { N_("Group"), OP_GROUP_REPLY },
  { N_("Help"),  OP_HELP },
  { NULL,0 }
};

which is clearly something to do with it but if you have to change
source code then you'd have to recompile also. I've not found a way to
do, say,

bind index L list-reply

it just does _not work. I'll have a scratch around anyhow and see if I
find anything.

Mo


Re: I how to customize the help line on top

2014-04-20 Thread Gary Johnson
On 2014-04-20, michael kaiser wrote:
> On 08:42 Sat 19 Apr , Gary Johnson wrote:
> > On 2014-04-19, Maurice McCarthy wrote:
> > 
> > >  On 18/04/2014, michael kaiser wrote:
> > > > Hallo all
> > > >
> > > > My mutt display a help line with any important keys.
> > > > Can I customize this line with my own favorite key-bindings?
> > 
> > >  Yes you can. See the Mutt manual. In mutt press F1 or see
> > >  http://www.mutt.org/doc/manual.txt and search for "key bindings".
> > > 
> > >  You have to  use the bind command in ~/.muttrc or in Mutt running. You
> > >  have to restart Mutt to see the changes.
> > 
> > The question was not whether one can customize key bindings but
> > whether those key bindings can be displayed in the top line.
> > 
> > I'm pretty sure but not positive that that can't be done.
> > 
> > Regards,
> > Gary
> > 
> 
> I use mutt more than one imap account.
> I use macros F2 F3 ... to switch between this accounts.
> I want display "F2 ACCOUNT_JOB" "F3-ACCOUNT_PRIVAT".
> I need a small recall so see what key is what.
> The standard keys are not so important.

If all you need is an occasional reminder of which key is for which
account, typing ? will show the help menu for the current screen.
The help menu includes user-defined bindings and macros.

The only other way I can think of to display a custom line on the
screen is to use the status line and the 'status_format' variable.
Fitting your function key operations on that line could be a tight
squeeze, though, unless you use a wide terminal.

Note that I'm replying to the list as well so that others can see
and comment on your request and my reply.

Regards,
Gary