Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Question about completion
- X-seq: zsh-users 4247
- From: Goran Koruga <goran.koruga@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Question about completion
- Date: Tue, 18 Sep 2001 15:41:06 +0200
- In-reply-to: <20010918145401.J31900@xxxxxxxxxxxxxx>; from goran.koruga@xxxxxxxxx on Tue, Sep 18, 2001 at 02:54:01PM +0200
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20010918143251.I31900@xxxxxxxxxxxxxx> <NEBBLJPPCIEAOOGDLCFEOECKCMAA.daniel.brahneborg@xxxxxxxxxxxxx> <20010918145401.J31900@xxxxxxxxxxxxxx>
- Sender: Goran Koruga <goran.koruga@xxxxxxxxx>
On Tue, Sep 18 2001, Goran Koruga wrote:
I have figured out that I can get the behaviour that Daniel described if
I do setopt automenu and setopt autolist. But this doesn't work if I also
run
autoload -U compinit
compinit
So is there a way to have both ? If not, I guess my second question still
stands, otherwise I jsut need to know how to achieve this.
Thanks.
Goran
> On Tue, Sep 18 2001, Daniel Brahneborg wrote:
>
> Hi,
>
> I have tried this already, but it doesn't quite work. The thing is, that
> you have to call opendir() with "foo@@/" in order to get all the matches
> from readdir() and that doesn't seem to be the case here.
>
> Goran
>
> > Hi,
> >
> > > My second question is more complicated. In ClearCase, one can access
> > > different version of file with syntax like this : filename@@version,
> > > where version is /main/1 for example. So full path for a file may look
> > > like "foo@@/main/1". Right now, my completion lists only the
> > > filenames,
> > > that is, only "foo" is listed. Is there a way to program completion so
> > > that if a strng ends with "@@", I could run a custom function
> > > which would
> > > list all the versions available ? I have looked at the manual
> > > pages and
> > > examples, but I can't figure this out.
> >
> > Try foo@@/, and press tab. The overloaded readdir() in mvfs will
> > sort it out, and give the list of versions. Works in 4nt too.
> >
> > /Basic
> >
>
> --
> _______________________________________________________________
> Goran Koruga goran.koruga@xxxxxxxxx
>
> HERMES Softlab
> Litijska 51 phone: +386 1 5865 524
> 1000 Ljubljana, Slovenia
>
--
_______________________________________________________________
Goran Koruga goran.koruga@xxxxxxxxx
HERMES Softlab
Litijska 51 phone: +386 1 5865 524
1000 Ljubljana, Slovenia
Messages sorted by:
Reverse Date,
Date,
Thread,
Author