Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Completion: setting up _approximate.
- X-seq: zsh-users 22776
- From: Kamil <crs@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Completion: setting up _approximate.
- Date: Mon, 10 Jul 2017 11:16:07 +0300
- Cc: Zsh Users <zsh-users@xxxxxxx>
- 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==
- In-reply-to: <CAH+w=7bFBZFxocUBuo9jPia+nDJWSj=+NrqT0JxUEsPrY_BibA@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20170707091759.6m5vfr4qwesmumi5@calculator> <CAH+w=7YUOO0efSUgoZqxaYHE3MY6_71Nghz8Bsr18eE1UJMBbA@mail.gmail.com> <20170709043035.zwatqx2cfvmujehb@calculator> <CAH+w=7bFBZFxocUBuo9jPia+nDJWSj=+NrqT0JxUEsPrY_BibA@mail.gmail.com>
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<cursor>
> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author