Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Feature request: #a (approximate matching) only for spaces



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