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

zmodload completion reveals _files bug ?



_zmodload tries to complete module names by completing file paths in the
$module_path and then removing the shared library suffix:

    _requested files expl 'module file' \
      _files -W module_path -/g '*.(dll|s[ol]|bundle)(:r)' && ret=0

However, if the file-patterns style is set, that pattern passed to -g may
be ignored.  E.g. I have

    zstyle ':completion:*' file-patterns \
	'%p:globbed-files *(-/):directories' '*:all-files'

and the '*:all-files' pattern is applied in preference to %p, which breaks
the zmodload completion.  I presume this is because *(:r) are not actual
file names, and/or because they are always prefixes of matches for *.



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