Just to narrow it down, I added set -x to ftb_preview_init inside lib/-ftb-fzf.
That gives me,
+zsh:3> zmodload zsh/mapfile │
+zsh:4> local -a _ftb_compcap=( $'bin\C-B<\C-@>\C-@realdir\C-@\C-@args\C-@-Q\C-A-s\C-A\C-A-W\ │
+zsh:5> local -a _ftb_groups=( '' '' ) │
+zsh:6> local bs=$'\C-B' │
+zsh:8> export desc=' bin' │
+zsh:10> local -A ctxt=( '' ) │
zsh:10: bad set of key/value pairs for associative array │
ctxt has only one item instead of the two needed for the associative array.
Describe the bug
I'm trying to use the preview feature with cd as advised in the README by adding the following:
I see the following error inside the preview window:
I can make sure:
compinit
To Reproduce
Expected behavior
Preview window contains a list of files in the directory.
Screenshots
Screen recording 2022-12-18 18.21.29.webm
Environment:
zstyle ':completion:*' list-colors ''
)Minimal zshrc
If applicable, add a minimal zshrc to help us analyze.
Log
zsh-22539-fzf-tab-1.log
Just to narrow it down, I added
set -x
toftb_preview_init
inside lib/-ftb-fzf. That gives me,ctxt has only one item instead of the two needed for the associative array.