Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: umount /f/b<TAB> -> /foo/bar
- X-seq: zsh-workers 39081
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: umount /f/b<TAB> -> /foo/bar
- Date: Sat, 20 Aug 2016 18:12:45 +0000
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=EdH44BmHu04mOmslT9cGAtzAhLI=; b=1rQMgX OOiB6kZxzsany6tytfhWsBuuurX+jM+y9gDeq8sCWtZJuD7yo8oHf2Yv3dMFljyV zs7e2CfJrUK20s9HhYANEMYDQ2eQ29zvObY209NIQlFTkoWtr8h/HdO6skwuPd7/ s/IjEEQewmo5IE1JfBhhsD9uNze4+yjifdxYY=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=EdH44BmHu04mOmslT9cGAtzAhLI=; b=qJbUi 3oT6mQxPVf0OWZ/zqkdbcEFCGfGHppCh1XY68HDmB2Iq5w1oaHQH1FimYx+i00V/ AG4TMROZUxXr/Wz8noC9XIsYQB+QN/fmV/3cfHgx/Vr20GK3fj9d4J/PNsN5k0mh 282Ta4vF8sPgIPkyzK1APTy3yoFNF46/Sg5krg=
- In-reply-to: <160819223513.ZM1670@torch.brasslantern.com>
- 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
- References: <20160819155651.GA9598@fujitsu.shahaf.local2> <160819223513.ZM1670@torch.brasslantern.com>
Bart Schaefer wrote on Fri, Aug 19, 2016 at 22:35:13 -0700:
> On Aug 19, 3:56pm, Daniel Shahaf wrote:
> }
> } + # This codepath honours any -M matchspec parameters.
> } + () {
> } + local -a tmp_buffer
> } + compadd -A tmp_buffer "$__gopts[@]" -a files
> } + matches+=( "${(@)tmp_buffer/$canpref/$origpref}" )
> } + }
> } + else
> } + # ### Ideally, this codepath would do what the 'if' above does,
> } + # ### but telling compadd to pretend the "word on the command line"
> } + # ### is ${"the word on the command line"/$origpref/$canpref}.
> } + matches+=(${${(M)files:#$canpref*}/$canpref/$origpref})
> } + fi
>
> Perhaps some variation on
>
> compadd -M "B:${(b)origpref}=${(b)canpref}" -a files
>
> ?? Some cases of mount point names containing unusual characters might
> be a little weird.
I couldn't get that to work. Neither did assigning to words[CURRENT].
I'm tempted to push the patch as is, though, since it adds matchspecs
honouring to one use-case and doesn't break others.
Thanks,
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author