From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26204 invoked by alias); 18 Jun 2018 21:41:23 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 23497 Received: (qmail 23606 invoked by uid 1010); 18 Jun 2018 21:41:23 -0000 X-Qmail-Scanner-Diagnostics: from mail-vk0-f42.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.213.42):SA:0(-1.9/5.0):. Processed in 1.253598 secs); 18 Jun 2018 21:41:23 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: pierpaolog@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=iq96SXL+8cVqsr52oXfJYxVKoZKqBOx9OB0Ybmaklu4=; b=saOQbficiwexCefoaFnb45QrZyvPRcMXVIj+pdswhIU8pc4IbB2ah/kdLUtEsm5Udi TfW8s4Lro/u/hCilcJZhhELEddDOliUWdu//VSizEh030atjhH1tR936uXVR6ECxERHM rng4/ajuDFQUb7c4Lih/XgFWjpvl+VqRUJCK3mButoGAW9u6BThpvC6iuBg8iaOj8K0F QCfhoikQW95aG0Gs0sJSI/QSd2yGyGK5G9KXPvq1gXl8e5mHKAGBVRfHRzbvBeGS+aZ4 Bz1XMKjIgEnqRo0j5WqwHBpSHqCei5IuLY4Q3ugyVCSGfTG/9RLQ7mx4gkToSP2pjVen ksLw== X-Gm-Message-State: APt69E130xV28b1g0AS49jAFhJHvfMddZk+6EQM4ybMRqtLrDdJcqHzp R1sjcUyqDESgE3VDufPIT3xclVULqqFN/0+gPIee40xQ X-Google-Smtp-Source: ADUXVKKD/5x1utxxDvMN1D8LIQCigUevK7f53Ft4Hk0rFrLGeEHSO809xZ1jF0O8yFT7nrqplYFm5boDDOTHJXmPG58= X-Received: by 2002:a1f:9e8c:: with SMTP id h134-v6mr7943442vke.125.1529358078365; Mon, 18 Jun 2018 14:41:18 -0700 (PDT) MIME-Version: 1.0 From: Pier Paolo Grassi Date: Mon, 18 Jun 2018 23:40:41 +0200 Message-ID: Subject: completion configuration To: zsh-users@zsh.org Content-Type: multipart/alternative; boundary="000000000000fed6cd056ef16ca1" --000000000000fed6cd056ef16ca1 Content-Type: text/plain; charset="UTF-8" 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@gmail.com linkedin: https://www.linkedin.com/in/pier-paolo-grassi-19300217 founder: https://www.meetup.com/it-IT/Machine-Learning-TO --000000000000fed6cd056ef16ca1--