Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: multibyte implementation (for filename completion with umlauts)
- X-seq: zsh-users 23682
- From: Andy Spiegl <zsh.Andy@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: multibyte implementation (for filename completion with umlauts)
- Date: Tue, 25 Sep 2018 18:47:28 +0200
- In-reply-to: <20180920160535.oiflfeb6zxckhfte@tarpaulin.shahaf.local2>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mail-followup-to: zsh-users@xxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20180920101403.unp6epfpqllzzqov@spiegl.de> <20180920160535.oiflfeb6zxckhfte@tarpaulin.shahaf.local2>
Thanks Daniel.
> Therefore, how about writing a widget
> that does s/ẍ/xe/ (for x in a,o,u,A,O,U) before attempting completion.
> Would that be a workaround?
Yes, that sounds like a (pretty wicked hehe) workaround.
What would a widget like that look like?
I am really bad at zsh regexp and search/replace strings. :-(
While playing around I found a completer behaviour I cannot explain:
% touch testüng
% ls testün<TAB> --> "ls testüng"
% ls testÜn<TAB> --> BINGs
% ls Testün<TAB> --> also just BINGs
Shouldn't
zstyle ':completion:*' matcher-list 'm:{A-ZÄÖÜa-zäöü}={a-zäöüA-ZÄÖÜ}
take care of the capital T?
Apparently this one multibyte character screws up the whole completion process?
However, if I add
zstyle ':completion:*' completer _complete _match _correct
then "ls Testün" and even "ls testÜn" is corrected/completed fine.
I am a bit lost. :-)
Thanks,
Andy
--
If you believe everything you read, better not read.
(Japanese Proverb)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author