Aloxaf / fzf-tab

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

[Q]Double tapping Tab Required #368

Open JustCauseWhyNot opened 1 year ago

JustCauseWhyNot commented 1 year ago

For some reason in the past month or so pressing tab 2x is required in order for tab completion menu to show up. I don't know why the behavior has changed. I narrowed the issue down to this plugin. Here's my zsh dotfiles. I'd like to only have to press tab 1x to bring up the completion menu.

Aloxaf commented 1 year ago

fzf-tab should load before fast-syntax-highlighting and zsh-autosuggestions.

+source $ZDOTDIR/plugins/fzf-tab/fzf-tab.plugin.zsh
source $ZDOTDIR/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh
source $ZDOTDIR/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh && bindkey '^ ' autosuggest-accept
-source $ZDOTDIR/plugins/fzf-tab/fzf-tab.plugin.zsh

If the problem still exists, check the output of bindkey "^I". If it is fzf-tab-complete, then trigger completion with Ctrl+X . and upload the log.

JustCauseWhyNot commented 1 year ago

I don't really know what you mean with

trigger completion with Ctrl+X . and upload the log.

There's not output into the console, and I don't know what & where the log is supposed to be. I also can't seem to complete a completion while pressing cntrl+x.

Aloxaf commented 1 year ago

@JustCauseWhyNot Press Ctrl+x,and then press .

JustCauseWhyNot commented 1 year ago

I'm sorry for being a bozo. But I don't think I'm getting the effect you want. I press tab 1x to run a completion but I've got to press tab(or any key) 2x to for the menu to show. So I press tab no menu then I press Ctrl+x brings up menu then . it doesn't appear to do anything, and finally I press enter to select anything to finish completion. But no debugging output is shown, and if the output is being sent to a log somewhere I don't know which file to look upload.

Aloxaf commented 1 year ago

@JustCauseWhyNot What's the output of bindkey "^I"

JustCauseWhyNot commented 1 year ago
❯ bindkey "^I"
"^I" fzf-tab-complete
JustCauseWhyNot commented 1 year ago

Is this kinda dead? Is there anything I can provide in-order to help troubleshoot?