zsh-workers
 help / color / mirror / code / Atom feed
* Re: _approximate and _path_files
@ 1999-12-15 15:29 Sven Wischnowsky
  0 siblings, 0 replies; 2+ messages in thread
From: Sven Wischnowsky @ 1999-12-15 15:29 UTC (permalink / raw)
  To: zsh-workers


Andrej Borsenkow wrote:

> Do they work together? Assuming that I have directory /archive/sni/mr,
> 
> cd /archive; l sin<TAB>
> 
> gives me `sni'
> 
> but simple
> 
> l /ar/sin<TAB>
> 
> after *very* long time beeps.
> 
> If not - it's really a pity.
> 
> Actually, enabling _approximate (I have max-erros 3) and trying to complete any
> non-existing partial path takes really long time. Hmm ... looks, like zsh simply
> hangs (or better said, loops) currently. I have to press ^C to be able to enter
> something. ^C then returns to my input I tried to complete.

Damn, damn, damn. We lost this when we made braces in path prefixes
and suffixes work. The problem is that the compadd function
_approximate uses sticks the (#a...) at the beginning of the whole
string and then the C-code thinks that this doesn't match because it
doesn't compare the whole strings (including the prefixes and
suffixes), and that is the other way to look at the problem.

We can't just make the compadd() in _approximate to put the (#a...)
somewhere else because we don't know anything about separator
characters used in the calling function.

So we have to fix it in C... and I don't know yet how this is done
best (without losing too much of, e.g., the prefix matching stuff).

Bye
 Sven


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


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

* _approximate and _path_files
@ 1999-12-15 11:16 Andrej Borsenkow
  0 siblings, 0 replies; 2+ messages in thread
From: Andrej Borsenkow @ 1999-12-15 11:16 UTC (permalink / raw)
  To: ZSH workers mailing list


Do they work together? Assuming that I have directory /archive/sni/mr,

cd /archive; l sin<TAB>

gives me `sni'

but simple

l /ar/sin<TAB>

after *very* long time beeps.

If not - it's really a pity.

Actually, enabling _approximate (I have max-erros 3) and trying to complete any
non-existing partial path takes really long time. Hmm ... looks, like zsh simply
hangs (or better said, loops) currently. I have to press ^C to be able to enter
something. ^C then returns to my input I tried to complete.

/andrej


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

end of thread, other threads:[~1999-12-15 15:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-12-15 15:29 _approximate and _path_files Sven Wischnowsky
  -- strict thread matches above, loose matches on Subject: below --
1999-12-15 11:16 Andrej Borsenkow

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).