Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh Newbie wants to complete mutt email addresses or aliases



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