Zsh Mailing List Archive
Messages sorted by:
Re: Completion: setting up _approximate.
- X-seq: zsh-users 22769
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Completion: setting up _approximate.
- Date: Sat, 8 Jul 2017 14:24:03 -0700
- 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 :content-transfer-encoding; bh=1kerL52P0Slfm6t3CtbzplkPC3VLzVCGAAO4AyyJ6zY=; b=ACfS5Ed63s+L/f/cyQb1I4dXluXH4vyV8Kn/IMJmErE7qNV8t0fTnZnpbEtBHh77rn 5PKYYmWLWa0Wz/5mY1EOisH+i3MBCK+GqTG1DEO82k79YpE1sYMpI92sAlCvNUUbDU3u kWesUKbyVSeh9L0v7u2G3nChYu5ppSpRJsGRc0oUr+wAPJyM2CS+vrQAYvQamg45S1Ad nShHgwfy4gJSATJz8UsFpV63sxTyY31eXBaXYkzzooyIAOZ5f3Mbgb13fqnn1wHfZVRl 3U7JXRqZNWE5vYZzA0sJYAQLBDHbUioQtWH6z40FHLBFiEUvbHdVX2Bs2bPjoDp6e/4C F8UA==
- In-reply-to: <20170707091759.6m5vfr4qwesmumi5@calculator>
- List-help: <mailto:email@example.com>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:firstname.lastname@example.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20170707091759.6m5vfr4qwesmumi5@calculator>
You haven't said what version of zsh you are using, that may be significant.
On Fri, Jul 7, 2017 at 2:17 AM, Kamil <crs@xxxxxxxxx> wrote:
> I am trying to get following string in zle:
> completed to:
> /Volumes/Media/Series/Fargo/Season\ 03
> What I am getting instead is:
> ── corrections (errors: 1) ──
> Season\ 01/ Season\ 02/ Season\ 03/
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. _match should be doing nothing because there are no patterns
in your initial string, but both it and _approximate should be called
only when _complete returns nonzero.
Please confirm that you're completing this in command position, for
use with autocd.
> When I type /v/m/s/f/*3<tab> (note *) zle gets cleared instead.
Yes, that's a known issue when the ambiguity occurs too early in the
string; completion is attempting to restrict the view only to the
shortest common prefix, but sometimes that's empty and the effect is
to erase everything.
> I was trying to configure matcher-list but couldn't figure out how to
> make that work.
There's nothing inherently wrong with the matcher-list that you showed us.
Messages sorted by: