From: Kamil <crs@wafel.com>
To: zsh-users@zsh.org
Subject: Completion: setting up _approximate.
Date: Fri, 7 Jul 2017 12:17:59 +0300 [thread overview]
Message-ID: <20170707091759.6m5vfr4qwesmumi5@calculator> (raw)
Hi there,
I am trying to get following string in zle:
/v/m/s/f/3
completed to:
/Volumes/Media/Series/Fargo/Season\ 03
by pressing tab.
What I am getting instead is:
── corrections (errors: 1) ──
Season\ 01/ Season\ 02/ Season\ 03/
── original ──
/v/m/s/f/3
with Season\ 01 being selected.
Interestingly when change PWD to /Volumes/Media/Series/Fargo and type
./3<tab> it completes nicely to ./Season\ 03.
When I type /v/m/s/f/*3<tab> (note *) zle gets cleared instead.
I was trying to configure matcher-list but couldn't figure out how to
make that work.
My setup:
zstyle ':completion:*' completer _complete _match _approximate
zstyle ':completion:*' matcher-list \
'' \
'm:{a-z\-}={A-Z\_}' \
'r:[^[:alpha:]]||[[:alpha:]]=** r:|=* m:{a-z\-}={A-Z\_}' \
'r:[[:ascii:]]||[[:ascii:]]=** r:|=* m:{a-z\-}={A-Z\_}'
I am not sure if anything else from my configuration is relevant. I have
AUTO_CD set and it's the same for with and without cd.
--
Kamil
next reply other threads:[~2017-07-07 9:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-07 9:17 Kamil [this message]
2017-07-08 21:24 ` Bart Schaefer
2017-07-09 4:30 ` Kamil
2017-07-09 16:47 ` Bart Schaefer
2017-07-10 8:16 ` Kamil
2017-07-09 11:11 ` Oliver Kiddle
2017-07-09 12:08 ` Kamil
2017-07-09 14:58 ` Daniel Shahaf
2017-07-09 16:32 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170707091759.6m5vfr4qwesmumi5@calculator \
--to=crs@wafel.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).