Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: completion & read, vared
- X-seq: zsh-users 1671
- From: Heinz Deinhart <emperor@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: completion & read, vared
- Date: Mon, 13 Jul 1998 20:19:38 +0200 (CEST)
- Cc: zsh-users@xxxxxxxxxxxxxxx
- In-reply-to: <980713103758.ZM2098@xxxxxxxxxxxxxxxxxxxxxxx>
On Mon, 13 Jul 1998, Bart Schaefer wrote:
> On Jul 13, 1:10pm, Heinz Deinhart wrote:
> } Subject: completion & read, vared
> }
> } is there a way to use completion with any realine-like function ?
>
> Not directly; "read" inputs characters one at a time, for some reason,
> even when not in raw mode.
>
> } vared uses completion, but i cant figure out how to change its behaviour.
>
> Change its behavior how?
>
hmm, maybe i'm missing something, but i want to do something like that:
simple example:
"compctl -u huhu"
"huhu emp<TAB>" expands to "huhu emperor"
well and now it would be cool if vared had a completion option (maybe -C)
"vared -p 'enter a username> ' -C '-u' returnvar"
"emp<TAB>" expands to "emperor"
^^^^ the compctl options that vared
should use in input-line
anyway, thanks for the script, i will try to understand it :)
ciao,
Heinz
Messages sorted by:
Reverse Date,
Date,
Thread,
Author