Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Completion: setting up _approximate.
- X-seq: zsh-users 22768
- From: Kamil <crs@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Completion: setting up _approximate.
- Date: Fri, 7 Jul 2017 12:17:59 +0300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wafel-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:subject:message-id:mime-version:content-disposition :content-transfer-encoding:user-agent; bh=5jhQBdHwUZQbFd5hJc2a3YjhBR1DxBIXw13AdqFNoi4=; b=TJugUx6YHqyLCedrtL+4cQIsHy47dx4+lTBSwiYTeSH3PRq//IQhjQ+s1QZfnmEX8L KYfZ9H8vZTEBEVtU2lSp2tbBGcqmZesRVqg+MdBC0yjVjgf1DsqXPzogGSYVTdSR3Iwt 9lRyI2AmIrI/pecXgN7mmzZYIVevlnZyVRiRSd4mFagdr7b2VkzDTS4FLeQbZd666vof nXe/IHLsbjUQjlvUVPQvHlIEG9GvW5ym40uVxTHHfa4sphzR6xBTrBLfyi3bvIPXzXVb Qms9fM11u1aTe288luG+8SN0SkqHvEouKRhpAl4qaJS+dqIrRy8zUHzfNvtrGnguLBSW ItYg==
- 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
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author