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 21310
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Feature request: #a (approximate matching) only for spaces
- Date: Sat, 20 Feb 2016 11:19:05 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version:content-type; bh=w9c8wNuvIzGF1d1iIPYABvjRfffZVctDupxZ3iVzqqw=; b=h6RVf1e5+3fOTMUC0pPDntxNtBiE3Nc9mkRNmiSmIZ4LG6aJ8QiR3lJcvCKjqfVk6+ 3uauS1v1j9+ReyO9RueBTbbH1icdrOu+rIT3CzUQPgEa8dPQSaTXaO8gLrxn7jgZvhFY S2KKs0XX3PZCicUKZXUfGfzo4IoFuegmjE1MIJj1vfzGFWLuOCp3pQeaaHbNpYwH+u/g st6Ua5c3yOE002f2izK+x+HlXhxvC+CuR2VacfY8nKZU8wC/dCgJ7ovmQehYiOX7zpiT 5r+qE/bjJ7D01jwStwoyeE9sMWBkkQjNjZ5ac89ODZjqT1QQedslqhsfSxpDmKKMZiwY B1tQ==
- In-reply-to: <160220111603.ZM21374@torch.brasslantern.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> <CAKc7PVAiaRoVuwpaWNH5+-qnkJKRYUm+cd-5z65aEz1_EFrtkA@mail.gmail.com> <160219111327.ZM17643@torch.brasslantern.com> <160220111603.ZM21374@torch.brasslantern.com>
On Feb 20, 11:16am, Bart Schaefer wrote:
}
} All that was really necessary was to add (@) after +${ but note that any
} pattern characters in $INPUT will become active again in the subscript.
Oh, to prevent that change that same (@) to (b@):
"(${(j:|:)~${i::=1}+${(b@)${:-$INPUT"${(@)^${(s::)INPUT}/?/}"}:s/(#b)(#s)(?(#c$[i++]))/${match[1]}*}})*"
Messages sorted by:
Reverse Date,
Date,
Thread,
Author