Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: _ps1234, _date_formats: Complete strftime formats for %D{}
- X-seq: zsh-workers 35752
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- Subject: Re: PATCH: _ps1234, _date_formats: Complete strftime formats for %D{}
- Date: Thu, 9 Jul 2015 15:53:53 +0200
- Cc: zsh workers <zsh-workers@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=Q536gWdt9aSztk6e5IP5836J/ZX3F0nVUr/SbWkqr+I=; b=yJYTrUGFgLUntPzFfa7rZC0rmNqEk7dlSEKb39zzXZ8zQXAoB2dviEc1nsqkUS04dt k2j8aWquDTw61ae5agkhJ+HlVekSIIjlNLy5lDDdoNfSq+Dx21FGoD3h10zsaq3VzbKY IhbHSOdNLmVPymyHcFNSuq4TAaVIq9QAGltP0j+neNXPdv5cfl/wFzCmVGzQdMmcT4yb yCTTTHZ4dXIcnb0b6Wi80h3pqNfd6CJ1RVOlugZYoPyw7+pJBysHVqYPXjeSbM2vAd8i ZEfUwFlY0Y5n6rrEWuxGUerq6uY8fsr04TkFbPiEOZxL1kGpZAImnqmzxyzpM7DG+uY1 tsMg==
- In-reply-to: <21764.1436444277@thecus.kiddle.eu>
- 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: <1436143012-9243-1-git-send-email-mikachu@gmail.com> <4740.1436181110@thecus.kiddle.eu> <97E3F4A3-6951-4848-8711-B8BD609BA79D@kba.biglobe.ne.jp> <CAHYJk3R267MFUk0qqh3ftQ_1U3=c0Ekqztk5_CCcqD5mttfo+w@mail.gmail.com> <21764.1436444277@thecus.kiddle.eu>
On Thu, Jul 9, 2015 at 2:17 PM, Oliver Kiddle <okiddle@xxxxxxxxxxx> wrote:
> This patch also fixes and improves other things like the positioning of
> numeric arguments for ternary expressions.
PS1='%(<tab> no longer tells me "--- number", how is this an
improvement? It now completes delimiters after PS1='%(3<tab> which I
would also not consider an improvement :).
There doesn't seem to be a way to get back to completing anything
after print -P %D\\\{ (pressing tab at this point just deletes two
backslashes for me, and typing more things does nothing). It's
probably not a common thing to do though, so if it's complicated then
don't worry about it on my account.
if [[ -z $compstate[quote] ]]; then
bs='\' # in patterns we use (\\|) widely as print -P handles backslashes first
fi
I find the placement of this comment a bit odd, $bs is about
accepting/putting a backslash in places where the parser wants, not
any backslashes that print ever sees.
Let's hope nobody ever tries to use print -rP.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author