Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How to do filename completion with umlauts?
- X-seq: zsh-users 5794
- From: Andy Spiegl <zsh.Andy@xxxxxxxxx>
- To: ZSH User List <zsh-users@xxxxxxxxxx>
- Subject: Re: How to do filename completion with umlauts?
- Date: Tue, 21 Jan 2003 12:55:24 -0500
- In-reply-to: <10585.1043139241@xxxxxxxxxxxxxxxxxxxx>
- Kreccount: 1
- Mail-followup-to: ZSH User List <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: KasCada Telekommunikation und Marketing GmbH
- References: <20030120102923.A2388@xxxxxxxxxxxxxxxxxxx> <6134254DE87BD411908B00A0C99B044F03A0B5E9@xxxxxxxxxxxxxxxxxxxxxxx> <20030120113528.A5541@xxxxxxxxxxxxxxxxxxx> <10585.1043139241@xxxxxxxxxxxxxxxxxxxx>
Hi Oliver,
thanks for helping me!
> Can you try just using a simple function like this:
> _foo () {
> compadd -M 'm:{A-Zöäüa-zÖÄÜ}={a-zÖÄÜA-Zöäü}' - Ö123 Ä123 A567 Ü987
> }
> compdef _foo foo
> foo ä<tab>
Yep works. After the TAB I get "foo Ä123".
Hm, so why doesn't it work with normal completion?
Do you see any problem with these lines in my setup maybe?
zstyle ':completion:*' completer _expand_dots _complete _match _correct
zstyle ':completion::match:*' original yes
zstyle ':completion::match:*' insert-unambiguous true
zstyle ':completion::approximate:*' max-errors 2 numeric
zstyle ':completion::approximate:*' insert-unambiguous true
zstyle ':completion:*' ignore-parents parent pwd
zstyle ':incremental' completer _complete _correct
zstyle ':predict' completer _complete
zstyle ':completion:*:*:(^rm):*:*files' ignored-patterns '*?.(o|c~)' '*?~'
unsetopt rec_exact
zstyle ':completion:*:(cd|chdir|pushd|popd):*' special-dirs ..
zstyle ':completion:*:*:*' special-dirs ..
zstyle ':completion:*:*:*' special-dirs ..
zstyle ":completion:*" matcher-list 'm:{A-Zöäüa-zÖÄÜ}={a-zÖÄÜA-Zöäü}'
zstyle ':completion:*' squeeze-slashes true
zstyle ':completion:*' menu select=5
zstyle '*:matches' group 'yes'
zstyle ':completion:*' group-name ''
zstyle ':completion:*:*' group-order builtins functions aliases commands
Thanks so much,
Andy.
--
http://peru.spiegl.de Our project
http://radiomaranon.org.pe Radio Marañón, Jaén, Perú
o _ _ _
------- __o __o /\_ _ \\o (_)\__/o (_) -o)
----- _`\<,_ _`\<,_ _>(_) (_)/<_ \_| \ _|/' \/ /\\
---- (_)/ (_) (_)/ (_) (_) (_) (_) (_)' _\o_ _\_v
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The word "WINDOWS" stems from an old Sioux-dialect and means:
"White man stares through screen at hour glass."
Messages sorted by:
Reverse Date,
Date,
Thread,
Author