From bf0a90fa2043c47db6f2555329db399fe9a19fb6 Mon Sep 17 00:00:00 2001 From: esc Date: Mon, 3 Jun 2024 12:03:16 +0200 Subject: [PATCH 1/2] update conda search completion Add completion of `-i|--info` flags for conda search. Enable `conda search` to complete packages and versions. Following discussion at: https://github.com/conda-incubator/conda-zsh-completion/issues/60 --- _conda | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_conda b/_conda index ecb1e73..5ccb054 100644 --- a/_conda +++ b/_conda @@ -561,7 +561,8 @@ case $state in '(-v --verbose)'{-v,--verbose}'[Show available packages as blocks of data]' \ '--platform[Search the given platform.]' \ '--spec[Treat regex argument as a package specification]' \ - '*:regex:' \ + '(-i --info)'{-v,--verbose}'[Provide detailed information about each package.]' \ + '*:packages:__magic' \ ;; (create) _arguments -C $help_opts \ From d150370999ca0aaf7643437acc816ed274245866 Mon Sep 17 00:00:00 2001 From: esc Date: Mon, 3 Jun 2024 18:09:38 +0200 Subject: [PATCH 2/2] fixup as requested by user As title --- _conda | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_conda b/_conda index 5ccb054..682cbc9 100644 --- a/_conda +++ b/_conda @@ -562,7 +562,7 @@ case $state in '--platform[Search the given platform.]' \ '--spec[Treat regex argument as a package specification]' \ '(-i --info)'{-v,--verbose}'[Provide detailed information about each package.]' \ - '*:packages:__magic' \ + '*:regex:' \ ;; (create) _arguments -C $help_opts \