From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.dk
Subject: Re: cvs completion does not support partial path completion
Date: Fri, 27 Apr 2001 14:20:49 +0200 (MET DST) [thread overview]
Message-ID: <200104271220.OAA05898@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: <001001c0ce59$ec182370$21c9ca95@mow.siemens.ru>
Andrej Borsenkow wrote:
> Is "nice to have" in released version ...
>
> bor@itsrm2% cvs diff S/M/t.c (meaning Src/Modules/termcap.c)
> No matches for: `cvs command', `file', `directory', or `removed file'
As far as I can see, the problem is in _cvs, which I always try to avoid
coming near to. Have a look if you wish, you might have to have to deal
with interesting functions such as:
_cvs_modified_entries () {
if _cvs_loadstat; then
local expl match linedir realdir pat
match=()
: ${PREFIX:#(#b)(*/)(*)}
linedir="$match[1]"
realdir=${(e)~linedir}
[[ -f "$realdir"CVS/Entries ]] &&
[[ -n ${pat::="${(@j:|:)${(@)${(@)${(@)${(@)${(@)${(@M)${(@f)"$(<"$realdir"CVS/Entries)"}:#/*}#/}/\\/[^\\/]#\\///}%/[^/]#/[^/]#}:#${(j:|:)~${${${${(f)"$(LC_ALL=C builtin stat -gn +mtime -F '%a %b %e %T %Y' ${realdir}*(D) 2>/dev/null)"}##*/}/ //}//(#m)[][*?()<|^~#\\]/\\$MATCH}}}%%/*}//(#m)[][*?()<|^~#\\]/\\$MATCH}"} ]] &&
_wanted files expl file _path_files -g "$pat"
else
_cvs_existing_entries
fi
}
As far as I can see, that directory handling would require re-thinking
(or just placing a call to _files somewhere at the end as a catch-all
case when the clever functions failed, but placing it somewhere where it
won't get called more than once and not too early etc.).
Bye
Sven
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
next prev parent reply other threads:[~2001-04-27 12:21 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-26 14:05 Andrej Borsenkow
2001-04-27 12:20 ` Sven Wischnowsky [this message]
2001-04-27 13:08 ` Andrej Borsenkow
2001-04-27 13:22 ` Sven Wischnowsky
2001-04-27 17:54 ` Bart Schaefer
2001-04-30 8:17 ` Sven Wischnowsky
2001-04-30 16:56 ` Bart Schaefer
2001-05-01 9:39 ` Tanaka Akira
2001-05-04 5:16 ` PATCH: " Bart Schaefer
2001-05-04 16:26 ` Bart Schaefer
2001-05-07 7:58 ` Sven Wischnowsky
2001-05-07 14:52 ` Bart Schaefer
2001-05-08 8:45 ` Sven Wischnowsky
2001-05-04 16:39 ` 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=200104271220.OAA05898@beta.informatik.hu-berlin.de \
--to=wischnow@informatik.hu-berlin.de \
--cc=zsh-workers@sunsite.dk \
/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).