gelguy / wilder.nvim

A more adventurous wildmenu
MIT License
1.37k stars 34 forks source link

Using external fuzzy finder #15

Closed ratheesh closed 4 years ago

ratheesh commented 5 years ago

In the present code, is there a provision to pass the completion through external tools like fzf? If not, is there a plan to do this? Currently, full fuzzy completion is not working for me.

gelguy commented 5 years ago

Hi, I can confirm fuzzy completion is not working for the completion pipeline.

I'm in the middle of a big refactoring which will fix this bug. You can find it in the python_fuzzy_filter branch. Note that there are breaking changes in the pipeline. The default components will work fine but if you have custom components, they might stop working.

Apologies for the bug, will merge the branch when its ready.

ratheesh commented 5 years ago

Hi, Thanks for your support. I will look forward to the python fuzzy finder implementation.

ratheesh commented 4 years ago

@gelguy Just checking if you got a chance to look into fuzzy filter. If it is easy, it would be nice to support third party fuzzy filters like fzf.

gelguy commented 4 years ago

I've pushed a major refactoring (#17) which fixes the fuzzy filtering issue. Fuzzy filtering should be working for the cmdline_pipeline.

wilder#cmdline_pipeline({
  'fuzzy': 1,
  'fuzzy_filter': wilder#python_fuzzy_filter(),
})

Regarding the use of external processes (e.g. fzf) for filtering, I don't have an easy way at the moment since some plumbing needs to be written to the pipeline to properly handle results from the process.

ratheesh commented 4 years ago

Thank you @gelguy for this. Closing.

tzachar commented 3 years ago

Looks like most of the plumbing is implemented in https://github.com/vijaymarupudi/nvim-fzf Any chance of replacing the python code with fzf?

gelguy commented 3 years ago

nvim-fzf works different from wilder, so it is still difficult to write an FZF file finder pipeline. I don't have any plans for this.

One alternative is to adapt https://github.com/nvim-telescope/telescope-fzf-native.nvim as a filter, similar to how https://github.com/romgrk/fzy-lua-native is used in wilder#lua_fzy_native().