Aloxaf / fzf-tab

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

Reset prompt after completion done #426

Open hotpxl opened 7 months ago

hotpxl commented 7 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 7 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 7 months ago

@Aloxaf any comment is much appreciated!

Aloxaf commented 7 months ago

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

hotpxl commented 7 months ago

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

Aloxaf commented 7 months ago

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

hotpxl commented 7 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 7 months ago

can you remove zsh-autosuggestions and try again?

hotpxl commented 6 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
hotpxl commented 2 months ago

hi, shall we merge this?