nvim-telescope / telescope-fzf-native.nvim

FZF sorter for telescope written in c
1.38k stars 45 forks source link

!bang matching shows no results when the ! match is the only string to match #7

Closed rmagatti closed 3 years ago

rmagatti commented 3 years ago

Description

So I know the readme mentions there won't necessarily be 1:1 feature parity with fzf, but I did notice something strange when using fzf-native that's quite different than fzf that I'm not sure is the intended behaviour.

When starting the match with a !bang exclusion pattern, in fzf results still show up, respecting the exclusion match, with fzf-native they don't.

Examples

Correct exclusion when !bang pattern is not the first pattern to match

2021-04-24 22 54 42

Example of no results showing when the !bang match is the first match, but appearing when extra matching is provided.

2021-04-24 22 55 36

Fzf/expected behaviour

2021-04-24 22 56 06

Conni2461 commented 3 years ago

yep good catch. Will address that as soon as possible. Thanks for reporting :)

Conni2461 commented 3 years ago

This should be implemented in the last commit. Feel free to reopen if it doesn't work as expected (and feel free to open new issues if you find more oddness. I know its not perfect yet :rofl:).

Thanks for reporting :)