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 21519
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Feature request: #a (approximate matching) only for spaces
- Date: Sun, 8 May 2016 08:23:00 +0200
- 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:from:date:message-id:subject:to :cc; bh=8tlaWVg9kDqgMBp2tHqowXB2A0L4JwQ6x/SqnYN3jos=; b=ltHxb7kO7E8Dx+HnNtx9B2s33z0M6sA0l9qikw29SgMB0KTU2xh4ZjjJMFb6xXPGN2 fZHfKavE7inmNePKpb9zAy+Wvycq55tCQzotzsNPt6dGZ/zMQBy2V6oKO9jsMV7t8c0w 6pUiubz0nRGo1PLmaT0DPcwUaLOCSTpAls45Q56NNLg/HAxecAH1Tn4pZ046Oy6BSBzt 5KMsaJyWMTsC0VybFX5v/PTuHOM+PpbH+a7nlx5OYXJcMKj23k/iU3M4PPI1G9+LqOZq nk9Xm24Og/sy6KgEYzWSqYSiVTRmREBFdz5QM4nZQovKH0VZ+LDW5yD58NdxA+RRP6Ip 3u+g==
- In-reply-to: <CAKc7PVDrWYKAS-0x1Qfc3+Rkhc6m98-Hdm7-zNDZ9BfQduBFHQ@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> <CAHYJk3RgHN+WZs-57dOSuNJ2KQVJFEMK3GYOeXKktbvZ6ba+Ww@mail.gmail.com> <151207002253.ZM32539@torch.brasslantern.com> <CAKc7PVDrWYKAS-0x1Qfc3+Rkhc6m98-Hdm7-zNDZ9BfQduBFHQ@mail.gmail.com>
Being skeptical from the beginning, I've just found that fuzzy
matching might not be much better. Doing lsof | fzf and searching for
"listen tcp", gives:
Spotify 459 sgniazdowski 48u IPv4 0x641c23b7a67dd4e3
0t0 TCP localhost:4371 (LISTEN)
but also tons of other stuff like:
firefox 82115 sgniazdowski txt REG 1,1
94656 133710834 /Library/Fonts/DecoTypeNaskh.ttc
where "Library/Fonts/DecoTypeN" is matched. That's even worse than
*a*b*c..., there is no "*l*i*s*t*e*n*t*c*p*" embedded. Guess that what's
important is degree of similarity and showing reasonable matches
first.
Best regards,
Sebastian Gniazdowski
On 8 May 2016 at 08:13, Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx> wrote:
> On 7 December 2015 at 09:22, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>> On Dec 7, 5:44am, Mikael Magnusson wrote:
>> }
>> } % print -l ${~s//(#b)(?)/$match[1]*} # make the pattern g*i*t*p*u*r*g*e*
>>
>> Yeah, but that also matches gfooifootfooifoopfooufoorfoogfooefoo, which
>> I'm not sure is what Sebastian wants. The pattern
>
> Specifically, it also matches: git pull origin master :) I wonder how
> close one can get with patterns to recently popular fuzzy matching. I
> guess it's not possible, but maybe miracles happen?
>
> Best regards,
> Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author