danielfalk / smart-open.nvim

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

space after filename is not working (should search for folder instead filename) #45

Closed otavioschwanck closed 11 months ago

otavioschwanck commented 1 year ago

if i search only the file works:

image

if i search the path afterwards, doesn't works:

image

Tried with fzf and fzy and filename_first is true.

--

With filename_first false works only using /:

image

If i try to use space, doesn't work (i prefer space 100000x times): image

Would be awesome to have a option to use space as separator instead / for filename_first false.

Is possible to do it?

danielfalk commented 1 year ago

How it's displayed is different from how it's searched. For searching, that's delegated to fzy or fzf, depending on your configuration, and the search algorithm is given the full path (i.e., /path/to/my/file_name.foo) to match on.

Your issue here has just made me realize that this is a bit counter-intuitive, but I still think it's the right way to do it overall.

I'm surprised mo kyc doesn't work with fzf. That seems to work for me. Could you have been trying that search with fzy?

danielfalk commented 11 months ago

Never got a response on this, so closing for now. If there's still an issue, feel free to clarify and reopen