From aa78a98087052caed292eb0190700f57af0ab8b1 Mon Sep 17 00:00:00 2001 From: Ashley Bartlett Date: Thu, 11 Apr 2024 09:41:19 +1000 Subject: [PATCH] fix: zsh completions needs a result Re-added `compadd` from previous commit to force the completions to finish --- templates/zsh.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/templates/zsh.txt b/templates/zsh.txt index 684e2ef..d110154 100644 --- a/templates/zsh.txt +++ b/templates/zsh.txt @@ -104,9 +104,12 @@ if [[ -o zle ]]; then # shellcheck disable=SC2086 __zoxide_result="$(\command zoxide query --exclude "$(__zoxide_pwd || \builtin true)" --interactive -- ${words[2,-1]})" || __zoxide_result='' + # Set a result to ensure completion doesn't re-run + compadd -Q "" + # Bind '\e[0n' to helper function. \builtin bindkey '\e[0n' '__zoxide_z_complete_helper' - # Send '\e[0n' to console input. + # Sends query device status code, which results in a '\e[0n' being sent to console input. \builtin printf '\e[5n' fi