lincheney / fzf-tab-completion

Tab completion using fzf
GNU General Public License v3.0
623 stars 40 forks source link

Don't flush when completion items less than two #64

Closed adoyle-h closed 1 year ago

adoyle-h commented 1 year ago

I'm using latest version of fzf-tab with bash 5.2.2.

Description

When only one completion item, the flush of 'Loading matches ...'

CleanShot 2023-02-15 at 03 47 19

When no completion matched, the flush still exists,

CleanShot 2023-02-15 at 03 50 32

What I expect

No flush and no window pop up when the size of completion items less than two.

lincheney commented 1 year ago

Not sure this is truly fixable Bash/readline clears the prompt line before the keybind function is run. The flicker is unavoidable. See https://github.com/lincheney/fzf-tab-completion#custom-loading-message