Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
zmodload completion reveals _files bug ?
- X-seq: zsh-workers 34352
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: zmodload completion reveals _files bug ?
- Date: Thu, 22 Jan 2015 21:54:34 -0800
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
_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