Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
completion configuration
- X-seq: zsh-users 23497
- From: Pier Paolo Grassi <pierpaolog@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: completion configuration
- Date: Mon, 18 Jun 2018 23:40:41 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=iq96SXL+8cVqsr52oXfJYxVKoZKqBOx9OB0Ybmaklu4=; b=Y2Z/xuaHzZP1mEDnvnvRnSxBbq7yA2O0JRqp0q7paajhrO++HJiGU7wH5Nfebs+DII YoHBUXq0hTswW8InNt17KywNB9EPeiM9qNeNKKmzjerR1Ly5U43RrwqD5TeawXmAQ/e9 BpTkUNtIZYTq4eXaeGVMp3gqd/PU7/IiroPQZiBAWqtANtDSNxAU2PkPMOqw9fZpgZoL Sx23VMctnd2K/Rfob/ulKWSn7T1djplblu4AQaEUcbRIPjCNhtQ3BbDUcZYmfSqMZCCu x/x783i+4SRX9pY97snXQtIbCtvaY5gMXWJk3vUMKAQdlJW2/57Mk4/KVa2e8KT7g7YK IKdA==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
Hello everybody, I must confess I don't have a clue when it comes to
configure completion styles. I made various attempts but for now, I don't
seem to grasp the syntax of ztyle.
I have in my .zshrc (blindly copied years ago from who knows where):
zstyle -e ':completion:*:approximate:*' max-errors \
'reply=( $(( ($#PREFIX+$#SUFFIX)/3 )) numeric )'
that, as I understand, enables approximate match for all the commands when
trying completion for a number of errors proportional to the number of
characters of the word to be completed etc.
I would like to disable this completion for a command that has a completer
function I wrote that pass to compadd various values, since these are so
many that the completion is very slow to show matches. So I thought that
maybe disabling the approximate match for this command would speed things
up.
My best bet doing this was:
zstyle -e ':completion:*:approximate:my_command' max-errors 0
but this does not work. I tried also various variants to no success.
Can someone shed some light on this please?
--
Pier Paolo Grassi
email: pierpaolog@xxxxxxxxx
linkedin: https://www.linkedin.com/in/pier-paolo-grassi-19300217
founder: https://www.meetup.com/it-IT/Machine-Learning-TO
Messages sorted by:
Reverse Date,
Date,
Thread,
Author