From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-users@sunsite.dk
Subject: Re: completion tricks
Date: Tue, 20 Mar 2001 10:54:38 +0100 (MET) [thread overview]
Message-ID: <200103200954.KAA07039@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Felix Rosencrantz's message of Tue, 20 Mar 2001 00:30:14 -0800 (PST)
Felix Rosencrantz wrote:
> Zsh comes with a tool to convert tcsh completions to zsh compctl completions.
> It might be useful to have a tool to convert zsh compctl completions to the new
> completion system. Something like this would be useful for converting these
> custom completions.
Yes, I once thought about trying to do that. It can get pretty
complicated, though (with -T and -t and stuff). I was just too fed up
with compctl to mess with it again...
> It could provide a good learning experience for how to use the new system for
> folks familiar with the old (or are able to better understand the old system
> that the new.)
And I'm not sure about this. Writing a working converter is already
non-trivial, writing one that produces nice code even more so.
> For the timing issues, it might be useful if a completion could be stopped if a
> certain time limit has been reached. Maybe the check could occur between
> completers. So in addition to check if there were any matches, it could see if
> the time limit was exceeded.
Hm, if seconds are accurate enough this would be extremely simple to
add using $SECONDS.
> Also, I thought there was a style to tell the completion system, if a given
> filepath exists, accept it without trying to do completions on the whole
> path... Something like that might help prevent NFS from being excessively
> tickled by completion.
It's the default behaviour: leading path segments are accepted as they
are if there are files below them that can be matched by the rest of
the partially given path.
Bye
Sven
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
next reply other threads:[~2001-03-20 9:55 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-20 9:54 Sven Wischnowsky [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-03-21 8:23 Sven Wischnowsky
2001-03-20 15:36 Sven Wischnowsky
2001-03-20 17:00 ` Adam Spiers
2001-03-20 8:30 Felix Rosencrantz
2001-03-19 20:14 Jeff Shipman
2001-03-19 20:15 ` Marius Strom
2001-03-19 21:30 ` Adam Spiers
2001-03-19 21:46 ` Matt Armstrong
2001-03-19 22:04 ` Adam Spiers
2001-03-19 22:25 ` Matt Armstrong
2001-03-19 23:06 ` Adam Spiers
2001-03-20 8:28 ` Sven Wischnowsky
2001-03-20 8:37 ` Bart Schaefer
2001-03-20 14:57 ` Adam Spiers
2001-03-19 20:47 ` Stephane Bortzmeyer
2001-03-20 14:41 ` Stephane Bortzmeyer
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=200103200954.KAA07039@beta.informatik.hu-berlin.de \
--to=wischnow@informatik.hu-berlin.de \
--cc=zsh-users@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).