zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: command completion taking ages
Date: Mon, 13 Mar 2000 13:23:48 +0100 (MET)	[thread overview]
Message-ID: <200003131223.NAA19332@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Oliver Kiddle's message of Sun, 12 Mar 2000 15:44:25 +0000


Oliver Kiddle wrote:

> If I press tab in a position where all commands are completed, I get a
> very long delay. This is quite annoying even though I can interrupt it
> with Ctrl-C. Is there a way using the zstyle, tags and _wanted stuff
> that I could indicate with zstyle that I don't want to complete commands
> if $#PREFIX = 0. I couldn't see any styles which are passed through eval
> in any of _requested, _wanted, _tags etc but other than using the
> high-level stuff for tag ordering, I don't fully understand the tag
> selection stuff so I may well have missed something.

No, we don't have something like that. I don't remember exactly when
it was, but I have been thinking about something like that too...

Maybe some style tested by _setup or _tags saying if a certain tag
should only be used under certain circumstances. Either using the
approach we (well, I, and it wasn't my best idea either) used for
_match, i.e. the value of the style is math-eval'ed and if non-zero,
the tag is used. Or -- probably better, and we should then think about
using it for _match, too -- the value is just eval'ed and if it has a
zero return status (or the style is not set), the tag is used.

(Hm, now that I think of it... it's quite easy, why haven't I...)

Any other opinions?


Back to your question: currently you can only 1) use tag-order to make 
it generate as few matches as possible, or 2) (probably better) copy
and modify _command_names to test [[ -z $PREFIX] (or (( $#PREFIX )) if 
you prefer).


Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


             reply	other threads:[~2000-03-13 12:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-13 12:23 Sven Wischnowsky [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-03-20 10:28 Sven Wischnowsky
2000-03-16  8:46 Sven Wischnowsky
2000-03-15 13:28 Sven Wischnowsky
2000-03-16  1:35 ` Zefram
2000-03-15  9:48 Sven Wischnowsky
2000-03-14 15:27 Sven Wischnowsky
2000-03-14 18:32 ` Bart Schaefer
2000-03-12 15:44 Oliver Kiddle

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=200003131223.NAA19332@beta.informatik.hu-berlin.de \
    --to=wischnow@informatik.hu-berlin.de \
    --cc=zsh-workers@sunsite.auc.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).