Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Feature request: #a (approximate matching) only for spaces
- X-seq: zsh-users 21053
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- Subject: Re: Feature request: #a (approximate matching) only for spaces
- Date: Mon, 7 Dec 2015 05:44:48 +0100
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=GBhGz7GyMzAY3qUCDXc0ZB4pm07YazoSDb1zPiYe8jc=; b=svzB1vQTp4ouvF08z69ybJCoR1JJmjzs7cJwMNfOibWxIGpAPRoyn3jm0sFWrCQKDs wEA6pMPoEL2nzlhiR+ZfNz5+ShNToHItrdDP+jEE0hE0PeVJ7DiDRnk4CMm59EUCGrNN 4hQ5pDnJKg8qISJkWa5HquPECz3WGJSLeC/laYu1Xu6knhyUAJcI1vlbFE0f2QD6k9I+ zEmI60YlSgwp+YJcP2WNaUKzQALBc8Ldq8yYosB/ZDzKLUv/6wLF0Ks3GCmwwBWvlct0 9HbzGsehD0eo01Dzysgov1QAesHdyJdPsfvObA5WgTtWoGITsYsZxpOS4AWu+T9+OoEB Kziw==
- In-reply-to: <CAKc7PVATpn35B0mNzKQQFCpAgKq6F8C98nCFb0OfXMobJNi6Ow@mail.gmail.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: <CAKc7PVATpn35B0mNzKQQFCpAgKq6F8C98nCFb0OfXMobJNi6Ow@mail.gmail.com>
On Sat, Dec 5, 2015 at 9:43 AM, Sebastian Gniazdowski
<sgniazdowski@xxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author