zsh-users
 help / color / mirror / code / Atom feed
* Completion: setting up _approximate.
@ 2017-07-07  9:17 Kamil
  2017-07-08 21:24 ` Bart Schaefer
  0 siblings, 1 reply; 9+ messages in thread
From: Kamil @ 2017-07-07  9:17 UTC (permalink / raw)
  To: zsh-users

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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-07-10  8:16 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-07  9:17 Completion: setting up _approximate Kamil
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

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).