Aloxaf / fzf-tab

Replace zsh's default completion selection menu with fzf!
MIT License
2.98k stars 90 forks source link

[BUG] Breaks nix completion when quotes are used instead of \ #447

Closed Artturin closed 3 weeks ago

Artturin commented 1 month ago

Describe the bug

A clear and concise description of what the bug is.

https://github.com/NixOS/nix/blob/master/misc/zsh/completion.zsh

Bisected to acdc37214bf2f8e4b4d86df1e179bf2e226f9e12

I can make sure:

To Reproduce

Steps to reproduce the behavior: in any nix flake (ex: https://github.com/NixOS/nixpkgs) nix build ".#<tab>" doesn't show completions, only turns the ".#" to .# for a second

nix build .#<tab> turns .# to .\# and then a another tab shows completions

Environment:

Minimal zshrc

$ ZDOTDIR=empty zsh
$ autoload -U compinit; compinit
$ source ./fzf-tab/fzf-tab.plugin.zsh

Log

If applicable, use C-x . to trigger completion and provide the log.

Aloxaf commented 3 weeks ago

Can you try #448? It should fix ".#<tab>".

As for .#<tab>, the behavior is expected, you can disable it by zstyle ':completion:*' menu yes.

Artturin commented 3 weeks ago

Awesome, that fixes it. Thank you.