From: David Woodfall <dave@dawoodfall.net>
To: Zsh Users <zsh-users@zsh.org>
Subject: Completion/matcher error with file names that contain
Date: Sun, 16 Sep 2018 09:47:10 +0100 [thread overview]
Message-ID: <20180916084710.GO20615@blackswan> (raw)
unicode glyphs
zsh 5.6.2 in a plain linux console (which is set up for unicode.)
I get this error when I try to complete a non-existent file with 'ls'
and other commands when a file in pwd contains a unicode glyph in the
namw. e.g. 'PAБOTA'
516: utils.c:5456: BUG: unexpected end of string in mb_metacharlen()
After a little commenting out some of the completion lines in my
config I found that it comes down to the last line in my
matcher-list:
zstyle ':completion:*' matcher-list \
'm:{a-zA-Z\-}={A-Za-z\_}' \
'r:[^[:alpha:]]||[[:alpha:]]=** r:|=* m:{a-zA-Z\-}={A-Za-z\_}' \
'r:|?=** m:{a-zA-Z\-}={A-Za-z\_}'
I'll admit right here that I found the last two lines in that
matcher-list on the net and don't have much clue on what the ones
that use =* do. I was looking for partial in-word completion so that
e.g. doing:
cd air<tab>
would complete to
cd vim-airline
Thoughts?
--
Note that if I can get you to "su and say" something just by asking,
you have a very serious security problem on your system and you should
look into it.
-- Paul Vixie, vixie-cron 3.0.1 installation notes
.--. oo
(____)//
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
reply other threads:[~2018-09-16 8:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20180916084710.GO20615@blackswan \
--to=dave@dawoodfall.net \
--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).