zsh-users
 help / color / mirror / code / Atom feed
From: "Kingsley G. Morse Jr." <change@nas.com>
To: Marius Strom <marius@alpha1.net>
Cc: zsh-users@sunsite.dk
Subject: Re: zsh Newbie wants to complete mutt email addresses or aliases
Date: Tue, 30 Apr 2002 16:18:04 -0700	[thread overview]
Message-ID: <20020430161804.C6577@debian1.loaner.com> (raw)
In-Reply-To: <20020430165402.K63229@alpha1.net>; from marius@alpha1.net on Tue, Apr 30, 2002 at 04:54:02PM -0500

On Tue:16:54, Marius Strom wrote:
> Take out the initial \s+
[...]

Thanks! 

It worked!

Two minor observations:

1.) Although the zstyle/perl code worked as we expected when I entered it
at zsh's prompt, when I added it to .zshrc and subsequently started zsh,
it reported 

        "no such file or directory"

until I appended the first two (out of three) lines of the code. The
resulting .zshrc code that works for me is

        zstyle -e ':completion::complete:mutt:*:' users 'reply=($(perl -ne '\''print "$1\n"
                  if /^\s*alias\s+(\S+)\s+.*/;'\'' ~/.muttrc 2> /dev/null ))'

2.) Now when I use <tab> to complete mutt's email aliases, the completed
aliases sometimes end with an "@", which conveniently goes away when I
press <enter> to run mutt.


All in all... all's well that ends well.

Marius: I like your lost cable signature.

All: As a small token of my appreciation for your time and attention,
here's a tame joke:

        Q: How much does it cost to pierce a pirate's ears?

        A: A buccaneer!

Thanks,
Kingsley


  parent reply	other threads:[~2002-04-30 23:20 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-30 19:22 Kingsley G. Morse Jr.
2002-04-30 19:34 ` Clint Adams
2002-04-30 20:03   ` Phil Pennock
2002-04-30 20:17   ` Bart Schaefer
2002-04-30 21:31     ` Kingsley G. Morse Jr.
2002-04-30 21:48       ` Bart Schaefer
2002-04-30 21:54         ` Marius Strom
2002-04-30 22:11           ` Bart Schaefer
2002-04-30 23:18           ` Kingsley G. Morse Jr. [this message]
2002-05-01  8:41           ` Bruno Bonfils

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020430161804.C6577@debian1.loaner.com \
    --to=change@nas.com \
    --cc=marius@alpha1.net \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).