Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: completion & read, vared




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