nvim-telescope / telescope-fzy-native.nvim

FZY style sorter that is compiled
MIT License
178 stars 8 forks source link

Is it possible to incude exact match like with fzf ? #6

Closed ghost closed 3 years ago

ghost commented 3 years ago

I usually know the exact string im looking for and would prefer if i dont get search results from fuzzy matching.

Conni2461 commented 3 years ago

Its not part of the fzy algorithm. Thats why i ported fzf algorithm with the whole fzf syntax to a c library so we can use it in telescope. Take a look at https://github.com/nvim-telescope/telescope-fzf-native.nvim

ghost commented 3 years ago

I looked at the sample config for fzf native but there doesn't seem to be customization for exact match. Am I missing something ?

Conni2461 commented 3 years ago

Oh sorry i misunderstood you. You were looking for an option to always enable it? For fzf-native you can type ' to enable fuzzy matching for the next term but i just added it as an option as well.

require('telescope').setup {
  extensions = {
    fzf = {
      fuzzy = false
    }
  }
}
ghost commented 3 years ago

Yes this is what I was looking for since I don't need fuzzy results. Thanks.