fzf-tab
fzf-tab copied to clipboard
fix multiline prompt
Hi,
I don't know what I'm doing, but I know it fixes my problem. I'm using oh-my-zsh with p10k and a multi-line prompt. The multi-line seems to break fzf-tab,with my prompt scrolling up everytime I press tab and there no completion, and everytime I press '/' for continuous completion.
I have no idea whether this PR would break other users but I'll keep using it in my fork since I need it. So better open a PR and share it
I also use multiline prompt.
Are you using custom fzf-command
? Can your provide a minimal zshrc to reproduce this bug?
I also have this issue on oh-my-zsh, and when removing the fzf-tab
plugin the issue disappeared. However, I found out later, after some debugging, that the issue also disappeared when I removed COMPLETION_WAITING_DOTS="true"
and kept the fzf-tab
plugin. So it seems this option and fzf-tab don't work together well.
I have the same problem; for me, disabling the waiting dots is not a good solution because I often deal with slow mounts and I find the visual indication very useful. @Aloxaf, is the workaround proposed in this PS something that can break other stuff? I'm not sufficiently familiar with the completion system to judge for myself.