Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: _files with match-specs
- X-seq: zsh-users 20184
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Eric Cook <llua@xxxxxxx>
- Subject: Re: _files with match-specs
- Date: Thu, 7 May 2015 00:48:44 +0000
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=dyKGQ5QQhKqx21GhvhfkxT2EI/s=; b=wrIdEv j4gGCLPafGz8bFQCr9kD396yPT04rG4Ukbi24ORJXGBt/1ZZCWV/9plaJ+0nI+FJ 00bXB4JHyWXbpBXva/4yRF98aI4IU+J5C7GZnqPrwRJTD8OXgzaavrNer9ITEl7L TLsBZKVhwFOb4i0m9yIWpgRMkhKRByAuPqdgY=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=dyKGQ5QQhKqx21GhvhfkxT2EI/s=; b=gIKAx T7ejEdty/M8qEPJntS5Oz/Rs3puYzWS85I35peR+8nbrEaxaZ22kkcH4q2C3no2m eZCO0x+1iJTlI0bjksL60XEO9+kd36FZcV2AVHSYjn+WY6d1/t2zKbykHMOpXODs CmZzyFsZX3C1/FcNkNGk7dIHApgGIj+bpX5N3c=
- In-reply-to: <55498F16.60402@gmx.com>
- 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
- References: <55498F16.60402@gmx.com>
Eric Cook wrote on Tue, May 05, 2015 at 23:48:38 -0400:
> 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?
Don't know.
> If so, how should I go about completing filenames, ignoring a possible
> leading + character?
'_f() { compset -P +; _files }', perhaps?
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author