From: Mikael Magnusson <mikachu@gmail.com>
To: Sebastian Gniazdowski <sgniazdowski@gmail.com>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: Feature request: #a (approximate matching) only for spaces
Date: Mon, 7 Dec 2015 05:44:48 +0100 [thread overview]
Message-ID: <CAHYJk3RgHN+WZs-57dOSuNJ2KQVJFEMK3GYOeXKktbvZ6ba+Ww@mail.gmail.com> (raw)
In-Reply-To: <CAKc7PVATpn35B0mNzKQQFCpAgKq6F8C98nCFb0OfXMobJNi6Ow@mail.gmail.com>
On Sat, Dec 5, 2015 at 9:43 AM, Sebastian Gniazdowski
<sgniazdowski@gmail.com> wrote:
> Hello,
[...]
> Also, I wonder if there can something be done to handle searches as follows:
>
> gitpurge
> #=> git remote purge origin
% touch git\ {remote,foo,bar}\ {purge,baz,bing}\ {origin,upstream}
% s=gitpurge
% print -l ${~s//(#b)(?)/$match[1]*} # make the pattern g*i*t*p*u*r*g*e*
git bar purge origin
git bar purge upstream
git foo purge origin
git foo purge upstream
git remote purge origin
git remote purge upstream
--
Mikael Magnusson
next prev parent reply other threads:[~2015-12-07 4:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-05 8:43 Sebastian Gniazdowski
2015-12-07 4:44 ` Mikael Magnusson [this message]
2015-12-07 8:22 ` Bart Schaefer
2016-02-19 6:21 ` Sebastian Gniazdowski
2016-02-19 19:13 ` Bart Schaefer
2016-02-20 19:16 ` Bart Schaefer
2016-02-20 19:19 ` Bart Schaefer
2016-05-08 6:13 ` Sebastian Gniazdowski
2016-05-08 6:23 ` Sebastian Gniazdowski
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=CAHYJk3RgHN+WZs-57dOSuNJ2KQVJFEMK3GYOeXKktbvZ6ba+Ww@mail.gmail.com \
--to=mikachu@gmail.com \
--cc=sgniazdowski@gmail.com \
--cc=zsh-users@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).