Aloxaf / fzf-tab

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

feat: close fzf selection if backspace is pressed on empty input #351

Closed qoomon closed 1 year ago

qoomon commented 1 year ago

@Aloxaf any feedback?

yrammos commented 1 year ago

@qoomon I think this setting pertains to fzf, not `. Have you tried binding backspace to thebackward-delete-char/eof` action?

fzf --bind=bspace:backward-delete-char/eof

Run man fzf for a list of available actions and events, including this one.

qoomon commented 1 year ago

Have you tried binding backspace to the backward-delete-char/eof action?

@yrammos that's exactly what I did in this PR

yrammos commented 1 year ago

Oops, indeed -- sorry!

Aloxaf commented 1 year ago

That's good!

But I suggest moving it here, so that user can override it if they want: https://github.com/Aloxaf/fzf-tab/blob/f95cdcf2c390428d271f2304698c2d45f0cd4de5/lib/-ftb-fzf#L31

qoomon commented 1 year ago

@Aloxaf done.