Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: still confused about completion and matching
- X-seq: zsh-workers 13067
- From: "E. Jay Berkenbilt" <ejb@xxxxxx>
- To: Andrej.Borsenkow@xxxxxxxxxxxxxx
- Subject: Re: still confused about completion and matching
- Date: Mon, 23 Oct 2000 09:11:45 -0400
- Cc: zsh-workers@xxxxxxxxxxxxxx
- In-reply-to: <001701c03cc0$fa7a99a0$21c9ca95@xxxxxxxxxxxxxx> (Andrej.Borsenkow@xxxxxxxxxxxxxx)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <001701c03cc0$fa7a99a0$21c9ca95@xxxxxxxxxxxxxx>
> > > Good move I say. Well, look at the _arguments, it should be
> > > enough.
>
> Of course, I immediately realized, that there are two completions
> here. One for smbclient arguments (command line) and another one
> for smbclient commands (that is, inside of interactive
> session). Can tcsh do the latter? :-))
No, it can't. :-) However, years ago, I had a program called "ile"
(input line editor) that could add editing capabilities to arbitrary
commands. It wouldn't be hard to write a modern version of this
command using something like gnu readline attached to a pty in which
was running some interactive command.... I wonder how hard it would
be to get zsh to do something like this.
> If you are really motivated, look at the nslookup function and its usage of
> zsh/zpty for controlling interactive command. Theoretically, you could
> complete remote filenames, print jobs ... I love zsh :-))
Wow.... me too. :-)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author