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

Re: How to do filename completion with umlauts?



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