From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@zsh.org
Subject: Re: zsh spinning for ages when I hit tab on directory
Date: Tue, 08 Nov 2011 07:54:54 -0800 [thread overview]
Message-ID: <111108075454.ZM3135@torch.brasslantern.com> (raw)
In-Reply-To: <20111108153507.GD1621@x4.trippels.de>
On Nov 8, 4:35pm, Markus Trippelsdorf wrote:
} Subject: Re: zsh spinning for ages when I hit tab on directory
}
} > } zstyle ':completion:::::' completer _complete _approximate
} > } zstyle -e ':completion:*:approximate:*' max-errors 'reply=( $(( ($#PREFIX+$#SUFFIX)/3 )) )'
} >
} > zstyle -e ':completion:*:approximate:*' \
} > max-errors 'reply=( $(( ($#PREFIX:t+$#SUFFIX:h)/3 )) )'
}
} Thanks Bart. This fixes the problem.
} BTW I copied the lines from the "From bash to Z Shell" book.
Ah, yes, well, examples in books tend to illustrate isolated concepts.
It's a perfectly good example of how "zstyle -e" works, which in spite
of it being introduced in the section on _approximate is really what
the authors were getting at.
Also it works perfectly well as long as you don't type a really long
path to a directory filled with a lot of files. :-)
[This problem didn't occur to me as a technical reviewer of the book,
either, so ... accept our collective apologies?]
prev parent reply other threads:[~2011-11-08 15:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-08 13:10 Markus Trippelsdorf
2011-11-08 13:58 ` Markus Trippelsdorf
2011-11-08 14:21 ` Markus Trippelsdorf
2011-11-08 15:13 ` Bart Schaefer
2011-11-08 15:55 ` Mikael Magnusson
[not found] ` <111108071341.ZM3017__46451.674323953$1320765436$gmane$org@torch.brasslantern.com>
2011-11-08 15:35 ` Markus Trippelsdorf
2011-11-08 15:54 ` Bart Schaefer [this message]
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=111108075454.ZM3135@torch.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-users@zsh.org \
/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).