Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Index of element after width of characters
- X-seq: zsh-workers 36996
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [PATCH] Index of element after width of characters
- Date: Wed, 28 Oct 2015 08:54:54 +0100
- 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 :content-type:content-transfer-encoding; bh=jw0oR/Bx4XBmYnFUzNEZ+Ov5tvhMf5ipja7fV3Cmytw=; b=Z/ZLssczKhqtK6q7+YHjee9MJCsOVNnSf2dit6uCRb9NiMAXcbf12XmECuiMQTyQ1R fqY5bPaxBY9jifKupWTG8pedTWAMrTfL/URSZdeYJR7LxK+l+7RwNfTs4Wh5LT7qk+1Y aDSxn+QMoJDWmsZmFnmNCno03zaSIKdghwj1VxJkAh5m3Nx2Ybeh3r5doLY+kEzqTYzw rW87dvtrsBdbNJckydxg4JkSuxzh1CJMYTYvZa9OU8SjB3pgXU0W4SJpFGwukxmRlDPI 7G+5VX4O25xgSeQw2li9SkYRqRNR4Q/VhPrCjBhN/YkjsS1+bsxj81KYuU2ge8hFfcUX tCUw==
- In-reply-to: <CAKc7PVCGFJSZbiHDpJHivFco8J3SfHDesdjJoTzAY-sR4K5++w@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVC4LFGnBJau3gWuws3bTgc+zcnEE+o-B8ZmKEEWa8Kpog@mail.gmail.com> <CAH+w=7b1RQDPWw0u7NSDs9wdxC-rCQYvyXadKCd1pdNXEdFuXA@mail.gmail.com> <CAKc7PVCGFJSZbiHDpJHivFco8J3SfHDesdjJoTzAY-sR4K5++w@mail.gmail.com>
On 28 October 2015 at 08:46, Sebastian Gniazdowski
<sgniazdowski@xxxxxxxxx> wrote:
> I've counted actual flags, there are 42 of them, so there seems to be
> room for 10 of them (2*26 letters of English alphabet), 8 with my two
> patches. That might be not much. Plus symbols it's more, maybe this
> helps. I could use "-" and "," for the patches, it's quite mnemonic –
> it would look like ${(-:10:)a}, ${(,:9:)a} - the number is a limit,
> "-" is before limit, "," is after limit. Thought about "," and ".",
> but "." feels more like "at limit", while "," as "after limit". Minus
> feels like "before limit" so "-", "," it's quite fine, even better
> than "x", "y".
Could also code '.' as "at limit". It would be empty when the limit
doesn't divide any char into half, and return the char (as index) in
other case. This would be a full support of any string operations
where width counts. I'm heating up the already hard to grasp intuition
of the flags, hoping for better end effect.
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author