Aloxaf / fzf-tab

Replace zsh's default completion selection menu with fzf!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Q] How to get option descriptions?

mathomp4 opened this issue · comments

Describe your question

I'm new to fzf-tab having just discovered it today. So I have a dumb question: how does one get the cool "descriptions" as I see in the screencast, e.g.:

Screenshot 2023-04-26 at 3 14 14 PM

Note: I seem to get them for git[tab]:

Screenshot 2023-04-26 at 3 12 40 PM

but when I then do --[tab]:

Screenshot 2023-04-26 at 3 13 28 PM

Would be nice if "all broken" or "all working" but I seem to be in ... partly working?

I think I'm loading plugins in a good order:

❯ cat ~/.zsh_plugins.txt
# zsh-defer
romkatv/zsh-defer

# powerlevel10k
romkatv/powerlevel10k

# fzf-tab
Aloxaf/fzf-tab

# add useful 3rd party plugins
zsh-users/zsh-history-substring-search
zsh-users/zsh-autosuggestions
zdharma-continuum/fast-syntax-highlighting

but maybe that's the issue? Or is there another plugin I need?

commented

This is strange. git completion is bundle with zsh. It should work out of box.

What's your zsh version?

https://github.com/zsh-users/zsh/blob/cd1a0a70972e717aa93c5fd6b36f476b5593c206/Completion/Unix/Command/_git#L7750-L7765

@Aloxaf I'll let you know tomorrow. I was testing out one machine with fzf-tab and it's my work box. My guess is though it's probably pretty recent. I run brew upgrade on it a couple times a week and I think I'm pointing iTerm2 to the brew zsh...I think.

Finally was able to head into work. My zsh version is:

❯ zsh --version
zsh 5.9 (arm-apple-darwin21.6.0)

and I still see the oddity...

A note: I tried looking at this again, and it seems to still happen for me whether I use Apple's zsh or brew's. The versions are:

$ /bin/zsh --version
zsh 5.9 (x86_64-apple-darwin22.0)
$ /usr/local/bin/zsh --version
zsh 5.9 (x86_64-apple-darwin21.3.0)

I even tried putting enable-fzf-tab in various places of my .zshrc. No help. I never get the option descriptions after that first tab. Any other info that might help, @Aloxaf ?