Aloxaf / fzf-tab

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

Reset prompt after completion done #426

Open hotpxl opened 3 months ago

hotpxl commented 3 months ago

Somehow if I don't call zle reset-prompt, the highlighting turns off when the completion is done (either there's no more choice or when I ctrl-c)

hotpxl commented 3 months ago

Actually, it also works if I call zle redisplay instead of zle .redisplay (which seems like a cleaner solution). Is there any reason we are calling the original .redisplay function? In my case, I use z-sy-h and it overrides widgets to highlight stuff.

hotpxl commented 2 months ago

@Aloxaf any comment is much appreciated!

Aloxaf commented 2 months ago

What is your plugin loading order? Did you make sure fzf-tab was loaded before z-sy-h?

hotpxl commented 2 months ago

yeah, fzf-tab is loaded before z-sy-h

Aloxaf commented 2 months ago

what's the output of echo $widgets[fzf-tab-complete]?

hotpxl commented 2 months ago
echo $widgets[fzf-tab-complete]
user:_zsh_autosuggest_bound_1_fzf-tab-complete

it's rebound by https://github.com/zsh-users/zsh-autosuggestions

Aloxaf commented 2 months ago

can you remove zsh-autosuggestions and try again?

hotpxl commented 2 months ago

I removed zsh-autosuggestions, the problem persists. And now

echo $widgets[fzf-tab-complete]
user:_zsh_highlight_widget_orig-s0.0000010000-r30869-fzf-tab-complete