Closed fabian-thomas closed 9 months ago
Thanks for the temporary fix!
If it is useful to anyone, the temporary fix can be written as a git patch, and applied with git apply <patch_file>
, where <patch_file>
has the following contents:
diff --git a/lib/-ftb-fzf b/lib/-ftb-fzf
index 2cb4228..b1158cf 100755
--- a/lib/-ftb-fzf
+++ b/lib/-ftb-fzf
@@ -28,7 +28,7 @@ if (( \$+ctxt[realdir] )); then
fi
$(typeset -p words)
"
-local binds=tab:down,btab:up,change:top,ctrl-space:toggle,bspace:backward-delete-char/eof,ctrl-h:backward-delete-char/eof
+local binds=tab:down,btab:up,change:top,ctrl-space:toggle,bspace:backward-delete-char,ctrl-h:backward-delete-char
local fzf_command fzf_flags fzf_preview debug_command tmp switch_group fzf_pad fzf_min_height
local ret=0
The final fix for zsh is the following in your zshrc:
zstyle ':fzf-tab:*' fzf-bindings-default 'tab:down,btab:up,change:top,ctrl-space:toggle,bspace:backward-delete-char,ctrl-h:backward-delete-char'
See below for the final solution: https://github.com/Aloxaf/fzf-tab/issues/391#issuecomment-1962290542
The problem
Ubuntu 20.04 does ship fzf 0.20.0 which does not yet support the
backward-delete-char/eof
binding, therefore fzf-tab fails to query completion from fzf.Here is the relevant debug output (
bindkey "^I" fzf-tab-debug
):Running the printed fzf command directly gives:
Temporary fix
This can be fixed by editing
lib/-ftb-fzf
and replacing the line that sets the binds from:to
(thereby just stripping the
/eof
)Potential permanent fixes
Three come to my mind: