Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: multibyte implementation (for filename completion with umlauts)



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