zsh-users
 help / color / mirror / code / Atom feed
* Question about completeion.
@ 1996-07-25 11:47 Andrej Borsenkow
  1996-07-25 16:49 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Andrej Borsenkow @ 1996-07-25 11:47 UTC (permalink / raw)
  To: Zsh users mailing list

Hi!

I have modified multicomp() function to work for cd & Co. (including
$cdpath). It works fine; I can say

% cd /u/l/l/t<TAB>

and it is expanded to 

% cd /usr/local/lib/texmf

without any problem; `cd T<TAB>' would expand it to `cd TeX', meaning
/home/bor/src/TeX and /home/bor/src in $cdpath. Now I would like to write
small wrapper around cd, so that

% cd /u/l/l/t<RETURN>

would change dir into /usr/local/lib/texmf iff the match is unique;
otherweise expand argument and leave me in MENU mode. 

I am not so skillfull in zsh programming; also, I am not shure if I can
call completion from inside of shell function.

Is it possible? Thanks for any hint.

greetings 

-------------------------------------------------------------------------
Andrej Borsenkow 		Fax:   +7 (095) 252 01 05
SNI ITS Moscow			Tel:   +7 (095) 252 13 88

NERV:  borsenkow.msk		E-Mail: borsenkow.msk@sni.de
-------------------------------------------------------------------------



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-07-25 16:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-07-25 11:47 Question about completeion Andrej Borsenkow
1996-07-25 16:49 ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).