From ca95615d7fa53dd0fc40897cca32f784056f665f Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Tue, 14 Jun 2022 07:42:55 -0700 Subject: [PATCH] partially working _normal completion for zsh --- jc/shell_completions.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jc/shell_completions.py b/jc/shell_completions.py index 389e277f..da1dab6e 100644 --- a/jc/shell_completions.py +++ b/jc/shell_completions.py @@ -190,7 +190,9 @@ _jc() { # if magic command is found anywhere in the line, use called command's autocompletion for i in $${words:0:-1}; do if (( $$jc_commands[(Ie)$${i}] )); then - _normal -P + # still not working 100%. works fine as `jc dig`, but `jc -p dig` + # will only complete with files, not program-specific completions + _arguments '*::arguments:_normal' return 0 fi done