Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
_files with match-specs
- X-seq: zsh-users 20177
- From: Eric Cook <llua@xxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: _files with match-specs
- Date: Tue, 05 May 2015 23:48:38 -0400
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
Hey,
Not sure if i am doing something incorrect here but:
% _foo() _files -M 'L:|+='; compdef _foo foo
then
% foo +<tab>
Complete files, but removes the leading +.
When i give the same match-spec to compadd directly, it works as i expected.
% _foo() compadd -M 'L:|+=' -- *(N); compdef _foo foo
then
% foo +<tab>
Is the behavior of _files expected? If so, how should I go about
completing filenames, ignoring a possible leading + character?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author