Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to enable fzf for just specific commands #46

Open
phortonssf opened this issue Jan 16, 2022 · 3 comments
Open

how to enable fzf for just specific commands #46

phortonssf opened this issue Jan 16, 2022 · 3 comments

Comments

@phortonssf
Copy link

phortonssf commented Jan 16, 2022

zstyle ':completion:*:*:git:*' fzf-search-display true
I have the previous line after I source-fzf-tab-completion. Everything works great, however I would prefer to not run fzf when tab completing filenames/dirs. The previous line doesn't seem to work for me when placed either before or after sourcing fzf-tab-completion.

My plugins zsh.
`plugins=(
git
z
dircycle
ssh-agent
vi-mode
zsh-syntax-highlighting
zsh-vim-mode
zsh-system-clipboard
aws
fzf
docker
zsh-completions
zsh-autosuggestions
)

autoload -U compinit && compinit
source $ZSH/oh-my-zsh.sh

source $HOME/.oh-my-zsh/custom/plugins/fzf-tab-completion/zsh/fzf-zsh-completion.sh
zstyle ':completion:::git:*' fzf-search-display true

`

@lincheney
Copy link
Owner

hi, I think you are mistaken about the behaviour of fzf-search-display.
This not about when to display fzf for searching.
It is about whether fzf will also search ZSH display strings.

@phortonssf
Copy link
Author

That makes sense. Any idea on how to enbale fzf for just specific commands like aws otherwise use the default completion?

@lincheney
Copy link
Owner

there's no functionality right now, but i think it shouldn't be too hard to add, let me have a look

@lincheney lincheney changed the title only git tab completion not working how to enable fzf for just specific commands Jan 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants