Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: completion of dates
- X-seq: zsh-workers 35758
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Zsh workers <zsh-workers@xxxxxxx>
- Subject: Re: PATCH: completion of dates
- Date: Fri, 10 Jul 2015 11:11:26 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1436519487; bh=v2g4g5wGCHe3M0AK7Q85fqyATFEz9pCp3hPb5BTA3rw=; h=In-reply-to:From:References:To:Subject:Date:From:Subject; b=KfhwjXbj0oVvSvPzU9ik1zEWrDQ+1e0dFW2LLXKj2wygBivw6zbZ1BErXdcnCBLgbo/w1bJbY2Gy293ORtmhQsyQwWgYiykscxRFXrYlkrTeRSQkXO8NepwkVyLEAZz9MdYSqyeyRz5oS/mu/IbEnk05a4tcL9htBtlHGJJ2LLGbBMgw2i8dBdBGLrJEp9kg8U6YPUuC3ScLQv8xbklqI4K1gymjw8wBBRg3W8N5YUXvCOYy6rbt4eB0KgJcmHmAORdcmU3JWuwW9QRXVmDthIncUXNBGsO3BFaAcIN06LU/PvjWbGFrvMvyKhrmzR2JiTHJ0wrfM5lqPUvpjATIjw==
- In-reply-to: <CAHYJk3TP0AN2C8EK+DtVssBFtzsdccXbiGVTtFLJKrU7mcxF9Q@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: <11523.1436283148@thecus.kiddle.eu> <CAHYJk3TP0AN2C8EK+DtVssBFtzsdccXbiGVTtFLJKrU7mcxF9Q@mail.gmail.com>
Mikael Magnusson wrote:
> I don't really like this change. I usually forget the order for m3M+
> glob qualifiers, so it's handy to just press tab to see when which is
> valid, but now it starts autofilling stuff instead, and scrolling off
> everything else on my terminal. It also doesn't seem to insert
> anything actually sensible... but even if the bugs are fixed I would
> prefer to turn the whole thing off. :)
It can be turned off with:
zstyle ':completion:*:dates' max-matches-length 0
If the function stays, I can add some documentation for that.
The line of _dates which causes the autofilling is:
compstate[insert]=menu:$(( compstate[nmatches] + $#disp ))
Other places where we set compstate[insert] in a similar manner include
_pids and _mpc where we have insert-ids and insert-song-numbers styles
to control this. I could do something similar here. Any thoughts
on a style name: I think it is better to reuse generic names (i.e.
insert-ids) rather than name it insert-dates? Would you be happy with
that as a way forward? I wish it was possible to simply colour the
current date but a pattern to do that would match, e.g. the 10th of
every month.
Could you elaborate on "the bugs"? Issues could be reliant on your
timezone/setup/terminal and so not obvious to me. The issue mentioned by
Bart is a general menu selection thing.
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author