From: "Daniel Shahaf" <d.s@daniel.shahaf.name>
To: zsh-workers@zsh.org
Subject: Re: PATCH: trailing components
Date: Tue, 18 Jun 2019 19:37:42 +0000 [thread overview]
Message-ID: <6f974c69-9c16-4e9f-b0b6-37e40083223a@www.fastmail.com> (raw)
In-Reply-To: <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
next prev parent reply other threads:[~2019-06-19 8:06 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20190618130008eucas1p176cc19c1c8b831fc30b4bf7b3294f3af@eucas1p1.samsung.com>
2019-06-18 13:00 ` Peter Stephenson
2019-06-18 13:37 ` Daniel Shahaf
2019-06-18 13:54 ` Peter Stephenson
2019-06-18 14:45 ` Mikael Magnusson
2019-06-18 15:39 ` Peter Stephenson
2019-06-18 19:37 ` Daniel Shahaf [this message]
2019-06-19 15:02 ` Peter Stephenson
2019-06-20 10:14 ` Peter Stephenson
2019-06-18 14:42 ` Mikael Magnusson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6f974c69-9c16-4e9f-b0b6-37e40083223a@www.fastmail.com \
--to=d.s@daniel.shahaf.name \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).