Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: completion of dates
- X-seq: zsh-workers 35723
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Zsh workers <zsh-workers@xxxxxxx>
- Subject: Re: PATCH: completion of dates
- Date: Wed, 08 Jul 2015 00:09:27 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1436306969; bh=yQLQLqfTWENUKqdRU4aazrd+AHiFTdVtlXkjh7/E4Gc=; h=In-reply-to:From:References:To:Subject:Date:From:Subject; b=mHRmfwfspo0zvf9Te7ATwab/L1L5IL9x0zD6c66dnh12bz+g9DOS2aomVMj7EzYL8UIhWLoG3Au9hp0DlhXG8LNyKiI+v9pGIR0n43xpE/o1v9iy7eiqtVanZFgya/dS/CJ92EBs/R9dxsoy0oP3TEVP5Km1y1PQglJcrEMy5XIvDzDY1qLHojaF4PVus2I146ubsyfp1N7/lvEN1yP0Sv1K+yL3/rS6iA5p6t4nxIo3Vu2av9K4ncKTImYMw/P9FU8pm97y2x2KkmtcVKi85a1BGI+pb2+dg0BdzwQKdOku2bos45vrQCscuSW7QnZ0rpztbME+W1CwCTczsmnlIw==
- In-reply-to: <150707093248.ZM9971@torch.brasslantern.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: <11523.1436283148@thecus.kiddle.eu> <150707093248.ZM9971@torch.brasslantern.com>
Bart wrote:
> It would be nice if this only kicked in when menu-selection is active.
> I know that may not be possible, but the strange ordering of the matches
> is going to be baffling when only doing regular menu completion.
Looking for select in $_def_menu_style looks like it might do that but
I'm not exactly sure.
> If one menu-selects "before" or "since" and then immediately re-enters
> menu selection to choose the number of days, the +/- is removed from
> the line and you return to completing exact dates (with "sense" group
> available as before). [note 1] The only way to actually complete a
> before/since date is to type the +/- as a literal before entering the
> menu-selection, at which point the "sense" group disappears, or to
> begin normal completion after selecting before/since and then drop
> into menu-select from there.
I can't reproduce this problem at all. Even from zsh -f, it works for
me. So either I've misunderstood your steps or there's something in your
setup that it isn't allowing for. I'm assuming:
zsh -f
autoload -U compinit;compinit
zstyle ':completion*:default' menu 'select=0'
find . -mtime <tab>
<select "before"><enter (accept-line)><tab again>
That leaves the + on the command-line and resumes menu selection
without the "senses".
If you use a binding such as the following when selecting before/since,
does it work?
bindkey -M menuselect "/" accept-and-infer-next-history
Thanks
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author