Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: trailing components
- X-seq: zsh-workers 44428
- From: "Daniel Shahaf" <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: PATCH: trailing components
- Date: Tue, 18 Jun 2019 19:37:42 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=mime-version:message-id:in-reply-to :references:date:from:to:subject:content-type :content-transfer-encoding; s=fm3; bh=V5zERZHRlndxtmfULWV4Gssw5U Jwhfqraru1rZd65kA=; b=ePgPzxFErwjkkn8XC49syyD9Wvv+5zUXrS+TRIvu4p EDeSu+EEddInGA38/mCHnpyCkirww8ipdCDXFRhN7s0NmK2SOGrAPpChHLtS0SDe DGJsY/o+38vi49zV1PDZGDLUwe/OHntxm1HvYgadQh3qL6wbQdZ4c6O8fuWcANjL 7oGfu3tkaA4FLqNi66L7Tm2pDHEqQ2HQSZQX2wIc3VEXl8ScUb0WD2JOAwrvREr8 EjltwioWEdJIldOPmIxl+uteHOJXrDUS7Y/91D7xP26VKDrNqbbsxcY+oHQwhmtD mC09Tkj7bWobI8iB2j5C6o3LrL2Aw5ziSduXnkr3M5Kw==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=V5zERZHRlndxtmfULWV4Gssw5UJwhfqraru1rZd65 kA=; b=edAX88ASXluhlTyLuTqVk/t8Pxdf5D8l92yoo7QUhgi5C2UhXNpdGp6Z8 ORzK+mI3P9FjpgtZBBvMHQxMwx38zffw4JXfC+x1b7vCn/+wwDXKvp5h5sHjEBAW PGTuQrZA58sd2rBgNlYxMDRXhLEtq8ndR6yyXwEsvBzifGj0+0+gbHK0ECVXWCOf VvLx3wJEweK/+vW8Ft/OT7fl8y4TsnjlHlqFOW439eDKlwZ1fn74/CSf62sXSiLy FNzqJjczw26efYm3X9r8mtGJwAE0WOMKZ7c/FNEsAAT+0Tpq/dvdBc4R+oL+p5ie uKiKdDt+icNKj8336gmmDzIz+DJIg==
- In-reply-to: <1560866087.7731.18.camel@samsung.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>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CGME20190618130008eucas1p176cc19c1c8b831fc30b4bf7b3294f3af@eucas1p1.samsung.com> <1560862806.7731.11.camel@samsung.com> <523ba6f0-651a-444a-8ceb-c7c4ec186b20@www.fastmail.com> <1560866087.7731.18.camel@samsung.com>
Peter Stephenson wrote on Tue, 18 Jun 2019 13:55 +00:00:
> to be clear, what I was hoping for and lacking was something along the
> lines of:
>
> echo /blah/blah/blah/**/*.oogabooga(<stuff-here>)
What about
.
echo /blah/blah/blah/**/*.oogabooga(e.:t 2.)
.
after defining «function ":t" { … }» using one of the previous snippets?
You could even define curried versions, «_t2() { :t 2 "$@" }», for use
with the «(+_t2)» syntax.
> even if <stuff-here> wasn't quite as short as :t2. I could live with a
> few more characters but a loop or complicated substitution would lead me
> to propose adding the new code instead.
I'm not opposed to adding the new code; just brainstorming on alternatives.
Cheers,
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author