danielfalk / smart-open.nvim

Neovim plugin for fast file-finding
MIT License
498 stars 25 forks source link

Space in search prompt #39

Closed prochri closed 1 year ago

prochri commented 1 year ago

Hey, cool plugin!

I was wondering, how the matching handles spaces in the search. I often use them to match different parts of the path of a files path, like this:

With smart open, there are no files shown at all in this case. In general, adding a space to the search, seems to result in no results at all.

As a workaround, I could type everything without a space and would get a result mostly expected. But my muscle memory is somewhat used to that from other finders such as rofi.

danielfalk commented 1 year ago

That's delegated to the matching algorithm. You're probably using fzy. Try fzf instead.

prochri commented 1 year ago

Ah, perfect that fixed it!

Thanks for the fast response!