* PATCH: handle newer sort style in zstyle completion
@ 2021-02-07 0:45 Oliver Kiddle
0 siblings, 0 replies; only message in thread
From: Oliver Kiddle @ 2021-02-07 0:45 UTC (permalink / raw)
To: Zsh workers
In looking over github issue #63 which pertains to the sort style, I
noticed that the zstyle completion for that still only offers true and
false. This updates it.
I merged that github issue minus the test case as that didn't quite make
sense to me given the style removal.
Oliver
diff --git a/Completion/Zsh/Command/_zstyle b/Completion/Zsh/Command/_zstyle
index 75acde5f7..bb0e1f5bc 100644
--- a/Completion/Zsh/Command/_zstyle
+++ b/Completion/Zsh/Command/_zstyle
@@ -111,7 +111,7 @@ styles=(
show-ambiguity c:
show-completer c:bool
single-ignored c:single-ignored
- sort c:bool
+ sort c:sort-order
special-dirs c:sdirs
squeeze-slashes c:bool
stop c:stop
@@ -571,6 +571,10 @@ while (( $#state )); do
_message -e separators 'separator string'
;;
+ (sort-order)
+ _wanted sort-orders expl 'sort order' compadd -F line - true false match nosort numeric reverse
+ ;;
+
(max-matches-width)
_message -e numbers 'maximum display width for matches'
;;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-02-07 0:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-07 0:45 PATCH: handle newer sort style in zstyle completion Oliver Kiddle
zsh-workers
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://inbox.vuxu.org/zsh-workers
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V1 zsh-workers zsh-workers/ http://inbox.vuxu.org/zsh-workers \
zsh-workers@zsh.org
public-inbox-index zsh-workers
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://inbox.vuxu.org/vuxu.archive.zsh.workers
code repositories for the project(s) associated with this inbox:
https://git.vuxu.org/mirror/zsh/
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git