Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh Newbie wants to complete mutt email addresses or aliases
- X-seq: zsh-users 4907
- From: Marius Strom <marius@xxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: zsh Newbie wants to complete mutt email addresses or aliases
- Date: Tue, 30 Apr 2002 16:54:02 -0500
- Cc: "Kingsley G. Morse Jr." <change@xxxxxxx>, zsh-users@xxxxxxxxxx
- In-reply-to: <Pine.LNX.4.44.0204301442530.19152-100000@xxxxxxxxxxxxxxxx>; from schaefer@xxxxxxxxxxxxxxxx on Tue, Apr 30, 2002 at 02:48:29PM -0700
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20020430143132.A1336@xxxxxxxxxxxxxxxxxx> <Pine.LNX.4.44.0204301442530.19152-100000@xxxxxxxxxxxxxxxx>
Take out the initial \s+ in your perl regex, that should clear it up
(alias lines usually don't have preceeding whitespace.)
On Tue, 30 Apr 2002, Bart Schaefer wrote:
> First thing to try is, run the perl all by itself:
>
> perl -ne 'print "$1\n" if /^\s+alias\s+(\S+)\s+.*/;' ~/.muttrc
>
> Does this produce an error message? Does it produce the right output?
>
> If that appears to work, you dan debug the completion itself by using
>
> $ mutt -s "A silly subject" Joe_Do<C-x ?>
>
> That is, type control-x question-mark instead of tab. This will dump a
> trace of the completion code to a temp file, where you can look at it.
> Search it for "perl" to see whether and how the style above is being used.
--
/------------------------------------------------->
Marius Strom | Always carry a short length of fibre-optic cable.
Professional Geek | If you get lost, then you can drop it on the
System/Network Admin | ground, wait 10 minutes, and ask the backhoe
http://www.alpha1.net/ | operator how to get back to civilization.
\-------------| Alan Frame |---------------------->
Messages sorted by:
Reverse Date,
Date,
Thread,
Author