From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: zsh-users-return-23682-ml=inbox.vuxu.org@zsh.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 02ded4cf for ; Tue, 25 Sep 2018 16:47:57 +0000 (UTC) Received: (qmail 13775 invoked by alias); 25 Sep 2018 16:47:39 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 23682 Received: (qmail 13709 invoked by uid 1010); 25 Sep 2018 16:47:39 -0000 X-Qmail-Scanner-Diagnostics: from mailout2.lrz.de by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(129.187.255.136):SA:0(-4.2/5.0):. Processed in 2.912442 secs); 25 Sep 2018 16:47:39 -0000 X-Envelope-From: zsh.Andy@spiegl.de X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | X-Virus-Scanned: by amavisd-new at lrz.de in lxmhs66.srv.lrz.de Date: Tue, 25 Sep 2018 18:47:28 +0200 From: Andy Spiegl To: zsh-users@zsh.org Subject: Re: multibyte implementation (for filename completion with umlauts) Message-ID: <20180925164728.uhxbw4aafcbzmyn4@spiegl.de> Mail-Followup-To: zsh-users@zsh.org References: <20180920101403.unp6epfpqllzzqov@spiegl.de> <20180920160535.oiflfeb6zxckhfte@tarpaulin.shahaf.local2> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180920160535.oiflfeb6zxckhfte@tarpaulin.shahaf.local2> X-gpg-key: ID C2CB30F0, available on friendly keyservers near you X-gpg-fingerprint: 9051 50B9 13B0 57B9 10FD 48AC 4FA1 209B C2CB 30F0 X-Accepted-File-Formats: ASCII PDF Open/Free Formats - NO proprietory (e.g. Microsoft) files, please X-how-to-quote: http://quoting.is-easy.de/ X-how-to-ask-questions: http://www.catb.org/~esr/faqs/smart-questions.html X-stupid-disclaimers: http://goldmark.org/jeff/stupid-disclaimers/ X-angstklauseln: http://www.heise.de/artikel-archiv/ct/2014/08/136_Angstklauseln User-Agent: NeoMutt/20180622 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 --> "ls testüng" % ls testÜn --> BINGs % ls Testün --> 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)