Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: compctl question
- X-seq: zsh-users 2327
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxx
- Subject: Re: compctl question
- Date: Mon, 10 May 1999 13:15:52 +0200 (MET DST)
- In-reply-to: "Philip J. Hollenback"'s message of Fri, 7 May 1999 10:44:46 -0700
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
Philip J. Hollenback wrote:
> 1. How do you get around the fact that the shell grabs the '='? Can
> you turn that off for this one command?
Just use `-x "s[=]"' or `-x "S[=]"':
comcptl -x 's[=]' -W ~/mail -f -- bar
> 2. Is there a way to write a completion that rewrites the what is
> already on the command line? For instance, if I typed in this:
This is a bit tricky:
foo() { reply=( ~/mail/${1[2,-1]}*${2}(N:t) ); reply=( \\\=$^reply ); }
compctl -x 'S[=],S[\\=]' -UQK foo -- bar
But this has the side-effect of turning on menucompletion if automenu
is set.
Bye
Sven
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author