zsh-users
 help / color / mirror / code / Atom feed
From: Andy Spiegl <zsh.Andy@spiegl.de>
To: zsh-users@zsh.org
Subject: Re: multibyte implementation (for filename completion with umlauts)
Date: Tue, 25 Sep 2018 18:47:28 +0200	[thread overview]
Message-ID: <20180925164728.uhxbw4aafcbzmyn4@spiegl.de> (raw)
In-Reply-To: <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)

  reply	other threads:[~2018-09-25 16:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-20 10:14 Andy Spiegl
2018-09-20 16:05 ` Daniel Shahaf
2018-09-25 16:47   ` Andy Spiegl [this message]
2018-09-25 19:15     ` Daniel Shahaf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180925164728.uhxbw4aafcbzmyn4@spiegl.de \
    --to=zsh.andy@spiegl.de \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).