Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Regression: broken completion on modification time
- X-seq: zsh-workers 38675
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Dima Kogan <dima@xxxxxxxxxxxxxxx>, zsh-workers <zsh-workers@xxxxxxx>
- Subject: Re: Regression: broken completion on modification time
- Date: Tue, 14 Jun 2016 00:00:45 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1465855246; bh=fluaS73MI/NcOcaScINd68W/EMx3abYtfzIfDcOLupQ=; h=In-reply-to:From:References:To:Subject:Date:From:Subject; b=W5kmFbJ+JFbVF5H63PLp9dGv3OHafGr2Rrw9JUfznzcDcwssYRkzubxa2hk3ng+q6bGeAv6bLAZBSePlq/NiCwjikXsd751KcGiIZgZyOlP3F0tx6ECddMIYjexedAHJmtXJOKcsYWjqoaMDv/GkPlyYwfWSYjF5CKjjP32QTZPrdtzggTza74xIjcAxUq0u3tYoFUmxhhmvSw0VfVYgyLfo1flluxq5xWHJB6bcrpU0cltJr2mN9TZHdFnlqSEZGGVHaN+N1SoHlsx1idGdt9ZzgMY9zjnRv2z4Ux2W7pmTkyNv0hWRcmIi1wo0Wk63YZ3q/TSQmO2KWMGLPDqxDw==
- In-reply-to: <160612174712.ZM10957@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: <87oa76172f.fsf@secretsauce.net> <160612174712.ZM10957@torch.brasslantern.com>
Bart wrote:
> There was some controversy about this when it was added and discussion
> of how to keep it from kicking in if menu selection was NOT enabled,
> but I guess it never got fully resolved.
It should probably at least bail out if the complist module isn't loaded as
per this patch. Or have you got any better ideas on what to check for?
> In the meantime, to mostly get your old behavior back:
>
> zstyle ':completion:*:dates' max-matches-length 0
You might also want to try enabling menu selection. At a minimum, that
would be:
zmodload zsh/complist
zstyle ':completion*:default' menu 'select=0'
Oliver
diff --git a/Completion/Unix/Type/_dates b/Completion/Unix/Type/_dates
index 83397b4..549bab2 100644
--- a/Completion/Unix/Type/_dates
+++ b/Completion/Unix/Type/_dates
@@ -9,7 +9,7 @@
# max-matches-length : maximum number or percentage of lines to use for
# completion listing, if both are specified, the
# lowest takes precedence.
-# format : override date format
+# date-format : override date format
local -a disp cand expl
local userformat format spacer=1 spacing month monstart skip match
@@ -37,6 +37,7 @@ _tags dates || return 0
_comp_mesg=yes
_description -2V -x dates expl date
compadd "${@:/-X/-x}" "$expl[@]" -
+zmodload -e zsh/complist || return 0
[[ -n $PREFIX$SUFFIX ]] && return 0
(( rows )) || return 0
compstate[list]='packed rows'
Messages sorted by:
Reverse Date,
Date,
Thread,
Author