Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Completion: setting up _approximate.
- X-seq: zsh-users 22775
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Kamil <crs@xxxxxxxxx>
- Subject: Re: Completion: setting up _approximate.
- Date: Sun, 9 Jul 2017 09:47:31 -0700
- Cc: Zsh Users <zsh-users@xxxxxxx>
- 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==
- In-reply-to: <20170709043035.zwatqx2cfvmujehb@calculator>
- 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>
On Sat, Jul 8, 2017 at 9:30 PM, Kamil <crs@xxxxxxxxx> 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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author