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

Smarter matcher-list: skip previous sets



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I've noticed that my matcher-list setup causes a (possibly expensive)
completion function to be called multiple times, although the input was
not be changed by the matcher-list substitution.

The functrace is:

    _manage.py:4 _manage.py:465 (eval):1 _dispatch:63 _normal:40 _complete:117
    _main_complete:194 _zsh_highlight_widget_complete-word:0 zsh:1

My matcher-list setup:

    zstyle ':completion:*' matcher-list '' '+m:{a-z}={A-Z}' '+m:{A-Z}={a-z}' \
      '+r:|[._-]=* r:|=*' '+l:|=* r:|=*'

I think it would be smart if these calls would be skipped in case the
input has not changed (because it was all lower-case in the beginning).


Regards,
Daniel.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iD8DBQFVWmOkfAK/hT/mPgARAoJ2AKCM8iSQ8kaL92BTCT3ojQaxYHp1ywCgzz8Z
GEJGEy+nvPR9VBEbfrdfUDc=
=Q/cu
-----END PGP SIGNATURE-----



Messages sorted by: Reverse Date, Date, Thread, Author