From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15083 invoked by alias); 10 Jul 2017 02:24:53 -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: X-Seq: 22775 Received: (qmail 14838 invoked from network); 10 Jul 2017 02:24:53 -0000 X-Qmail-Scanner-Diagnostics: from mail-qk0-f175.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.220.175):SA:0(-1.2/5.0):. Processed in 0.805716 secs); 10 Jul 2017 02:24:53 -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.2 required=5.0 tests=DATE_IN_PAST_06_12, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,RCVD_IN_SORBS_SPAM,SPF_PASS, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.220.175 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=g9Tb4sPn4kUZyDIFXZsFfAfi20nJvYjhSIkddXy6s34=; b=FY5MdC97RFspWD3g07///PL269xSwu0/9wHLL5CYad/av0zz4blm0wKV6/s3mhMYVZ VZ7NwzMnQCnU0w0BikxjteuRBGt6L/D4vdTNFH545qYUu/eHGseuiFutvt1wQhrwOTZp iHUEE/ybSWacwQm+l7ctYoo+tXkMSfuyWS6Vp1mtfh/a2q+5CuNBwZkgxKd49obMCQV8 C9/C7BgfVBfqE0IPtu1XlbG4w9JBYZHCfdl2LMurfN9CVH3RTvGmAR1hMTNTgidqEQbX kp9qi4J24ijBWJvVYAdy6jWRpq7x5Lh/c/EC9DdHE81UFuwT+BRjZPLP+GvGqoXhNnrM ALhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=g9Tb4sPn4kUZyDIFXZsFfAfi20nJvYjhSIkddXy6s34=; b=Unpubm3cSlxAp8PMgAQkXf11UZUmOBGscczFQTBesx5rH0OZhbmdzQSanNUo0UJawl OUPsimdZwe0faNqJKQeKFryfarvDT7edgX7UvFVg0AvqRrC/xDV1MG/qMf9ONStz342B JdC9BnUbMze9k+4pUMEF/+oTij8r0H8WZWruBAa2lFh5qpB+T9iRGgeF/K89dKt6IK0f 8MMzrzi63y7ZSiEfe7Dot6pGzukD70TtMyip22Mh9p5XNtlEah7h34pTDOCdD9KV/jM5 FhFKSBaBHGc+v/drbr7nWOnU5tU3qcF5x3oNnmS0nDyRUmcmnNKo6V6NL+LicCiH/h9B N3cA== X-Gm-Message-State: AIVw111bU8Ga0yLQmbYRXnMXesbxxNldSzIj9KjmYKCuPCd6eSTFRyQ2 2H96AYDKiKm9c/y0FDWa4LMBUkqpW5ZD X-Received: by 10.55.24.146 with SMTP id 18mr3154353qky.190.1499618852252; Sun, 09 Jul 2017 09:47:32 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20170709043035.zwatqx2cfvmujehb@calculator> References: <20170707091759.6m5vfr4qwesmumi5@calculator> <20170709043035.zwatqx2cfvmujehb@calculator> From: Bart Schaefer Date: Sun, 9 Jul 2017 09:47:31 -0700 Message-ID: Subject: Re: Completion: setting up _approximate. To: Kamil Cc: Zsh Users Content-Type: text/plain; charset="UTF-8" On Sat, Jul 8, 2017 at 9:30 PM, Kamil wrote: > On 08/07/17 14:24, Bart Schaefer wrote: >> Those choices are obviously coming from _approximate, so the first >> thing to try is to remove that from your completer style and see what >> you get. > > No matches found, when I remove _approximate from completer list. OK, so _path_files (called from _complete) is failing. What happens if you leave off the trailing "3"? I suspect the issue is that expanding /v/m/s/f/ uses only prefixes -- that is, only the first letter of each directory name is expanded to the full name -- whereas 3 is a suffix, so you need something else to do that final bit of matching. That would explain why "*3" works. The way to find out is to use _complete_debug (bound to ctrl-x question-mark by default) to get a call trace.