From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14179 invoked by alias); 10 Jul 2017 08:16:18 -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: 22776 Received: (qmail 16552 invoked from network); 10 Jul 2017 08:16:18 -0000 X-Qmail-Scanner-Diagnostics: from mail-lf0-f45.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.215.45):SA:0(0.5/5.0):. Processed in 1.697156 secs); 10 Jul 2017 08:16:18 -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=0.5 required=5.0 tests=RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,RCVD_IN_SORBS_SPAM,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.1 X-Envelope-From: crs@wafel.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at wafel.com does not designate permitted sender hosts) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wafel-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=VgPb5qiZF8hGO0gm4XMmpLg5Jbnx1vZoRk7+Z6Jo5m4=; b=ORuyaoWBzO/b7ArdYik2sWmdcXXxklEwsfJjPnQjspmD+wvk699jtuf1fk1FfvFKD8 dDeyOMrxlDwQalr4UsINt10imhgonzwUsZTmC61i7TY+5qzamvqx2aqHl+HJHKD2CxVk rUWXzw0lA+TBGeS8iloq9N7thtuhxnYn50U8t6xnwUpqd73hGZkMOGBvj/rMg35ip5bk y4wSO2mNgk/fLRibgSRTamPI1VhHOqLI2FsUrdPADa8rFiIcaRDAa/jlygovtlqvIl6J xhMFf6R9T9QqQgitu3Byyp4KmrcfPJc1yivOqZhb6Yh1YvJEePQ3cn+UqucCsCQtWqET BtJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=VgPb5qiZF8hGO0gm4XMmpLg5Jbnx1vZoRk7+Z6Jo5m4=; b=kS7a7vmc+fENbIiI0HVRpvHXqSB33XyP1QOOV8CxOmhTOLNImvK0FjlMSXKHyD4S99 W/NviZ5dTsPNFasNSLz2LRvxBNa79gqzmW/SsO81saWNkn6C4w6ba5GGhGBlVJ/bs9fp njmhRyWkVg9i49xPVP2fVlT52XxK8N+r5r7zJIDbY/cjIaNxpWWErUaHxsf9+YldS2Vd tE6VukuqBKR+yyfwAcQeGnRGbAWHew/IOqNtr+CPXI4vpzeE9IRqJI2NR+QID+aOPztB lwDRxJhufoT759CdDZ6W7udYcwqjoldd2T+OPauw2hQYHW6cikyzhCRRN7b7xBuw/9NI 2D5A== X-Gm-Message-State: AIVw111y3zNwH1PRB2k5nNBkkCQ+G4HvuLrnzMEBOS0ZtdjLubYIaiZF 99Gy1JYT3o6gEBK39acMQA== X-Received: by 10.80.166.101 with SMTP id d92mr11108581edc.132.1499674569779; Mon, 10 Jul 2017 01:16:09 -0700 (PDT) Date: Mon, 10 Jul 2017 11:16:07 +0300 From: Kamil To: Bart Schaefer Cc: Zsh Users Subject: Re: Completion: setting up _approximate. Message-ID: <20170710081607.4rke2m5tqhnxzbxh@calculator> References: <20170707091759.6m5vfr4qwesmumi5@calculator> <20170709043035.zwatqx2cfvmujehb@calculator> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170609 (1.8.3) On 09/07/17 09:47, Bart Schaefer wrote: > OK, so _path_files (called from _complete) is failing. What happens > if you leave off the trailing "3"? It gets expanded to: /Volumes/Media/Series/Fargo/Season\ 0 > 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. Yeah, this is what I am after - avoid the need for * in last element. 3 in there is the only matching pattern. > The way to find out is to use _complete_debug (bound to ctrl-x > question-mark by default) to get a call trace. Would you like me to paste it all here? It's 1.3M big and contain some other data that I would rather not share in its entirety. Any particular parts of it you would like to see? -- Kamil