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 35750
- 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:25:38 +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=A6uVYryTqGTNP+r3VCDcrHprLd7GgqSRm+0RdFJL4uw=; b=IabOvjJXj1jElWH6WjfbJ50FkN2QND8VY8tVPYQD8kmy2Un8LZ4+zTdPR2d7qyu2On 1aeEN2Owz8C4l4f3lA7xNEw1tEurckCQvP/+y3UHdtHgt70e92g5HkTGzMYI0Yq3PPBi x83wT/ph3J1Rf/NE4uXy9u6SKS5uIGOJDyxEBig/6vqINl5teoPWQiZrrmL3DNs1Z0xV bAc4no9T1ugl+SWujTUSI4jxSdqkEmq6/v49D2/cIRV5nWDsRUnq7qNn58KaVGuMwr5b p0c9SiZ9be9/G+I/cs6dRCQLG+0kC+fz1MhJfxjjj+jBtZ1yZQopW58gnoEW/kR38sUM HWLA==
- 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:
> Mikael Magnusson wrote:
>>
>> I've also just noticed that completion after %D\{%\# and \^ doesn't
>> work, but single-quoted is fine.
>
> That's the fault of _ps1234.
>
> It's best to use compset -P and get to a point where _date_formats is
> called with $PREFIX only containing date formats and no prompt stuff.
>
> I finally worked out that the point of calling _default from _ps1234 is
> for print -P. That's _print's job to do that.
It was also so that nobody (weird?) would complain that PS1=/foo<tab>
stopped working, I think.
> + compset -P '(\\|){' || pre=( -p "$bs{" )
> + compset -S '(\\|)}*' || suf=( -S $bs\} )
Did you mean both $bs and \ here? You probably did, but doesn't hurt
to check :).
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author