fzf-tab icon indicating copy to clipboard operation
fzf-tab copied to clipboard

Reset prompt after completion done

Open hotpxl opened this issue 1 year ago • 9 comments

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 avatar Apr 02 '24 04:04 hotpxl

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 avatar Apr 04 '24 03:04 hotpxl

@Aloxaf any comment is much appreciated!

hotpxl avatar Apr 09 '24 15:04 hotpxl

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

Aloxaf avatar Apr 24 '24 00:04 Aloxaf

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

hotpxl avatar Apr 24 '24 02:04 hotpxl

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

Aloxaf avatar Apr 25 '24 00:04 Aloxaf

echo $widgets[fzf-tab-complete]
user:_zsh_autosuggest_bound_1_fzf-tab-complete

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

hotpxl avatar Apr 25 '24 02:04 hotpxl

can you remove zsh-autosuggestions and try again?

Aloxaf avatar Apr 26 '24 01:04 Aloxaf

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 avatar Apr 29 '24 22:04 hotpxl

hi, shall we merge this?

hotpxl avatar Sep 04 '24 20:09 hotpxl