From: Andrej Borsenkow <borsenkow.msk@sni.de>
To: Zsh users mailing list <zsh-users@math.gatech.edu>
Subject: Question about completeion.
Date: Thu, 25 Jul 1996 15:47:39 +0400 (MOW) [thread overview]
Message-ID: <Pine.SV4.3.95.960725153828.24372D-100000@itsrm1> (raw)
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
-------------------------------------------------------------------------
next reply other threads:[~1996-07-25 11:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-07-25 11:47 Andrej Borsenkow [this message]
1996-07-25 16:49 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.SV4.3.95.960725153828.24372D-100000@itsrm1 \
--to=borsenkow.msk@sni.de \
--cc=zsh-users@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).