zsh-users
 help / color / mirror / code / Atom feed
* _files with match-specs
@ 2015-05-06  3:48 Eric Cook
  2015-05-07  0:48 ` Daniel Shahaf
  2015-05-11  4:02 ` Bart Schaefer
  0 siblings, 2 replies; 4+ messages in thread
From: Eric Cook @ 2015-05-06  3:48 UTC (permalink / raw)
  To: zsh-users

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?


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-05-11  4:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-06  3:48 _files with match-specs Eric Cook
2015-05-07  0:48 ` Daniel Shahaf
2015-05-07  2:39   ` Eric Cook
2015-05-11  4:02 ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).