Canop / broot

A new way to see and navigate directory trees : https://dystroy.org/broot
MIT License
10.71k stars 236 forks source link

Use broot to fuzzy find path in vim #498

Open abdallahz3 opened 2 years ago

abdallahz3 commented 2 years ago

Hi, There is an nvim-cmp plugin https://github.com/tzachar/cmp-fuzzy-path which fuzzy finds path in the current project. I was wondering if I can use broot to do the fuzzy finding. Is there a non-interactive mode for broot?

Canop commented 2 years ago

There's no such mode today.

Martin1887 commented 4 months ago

A Vim/Neovim extension would be great! Some extensions exist but they have no activity since a long time and when I have tried them they have not worked or their behaviour is not the expected one.

What I would like is a Telescope-like floating window executing Broot from the project root when a Vim command (e.g. :broot) is is executed, and then pressing Enter in a file creates a new buffer with optional keymaps for opening it in a new splitted window or tab.

In the broot side it is very similar to the path finding feature introduced by https://github.com/Canop/broot/issues/152#issuecomment-1892781189.

Thanks!

Canop commented 4 months ago

Yes.

Martin1887 commented 3 months ago

https://github.com/aohoyd/broot.nvim works well for me, the only problems I have found is setting lazy=false' in LazyVim to load it always andBrootcommand does not work (butBrootProjectDir,BrootCurrentDir` etc. work well).

I think this plugin deserves more promotion, since it is a small and really useful plugin, and then this issue could be closed after a bit of advertisement of this plugin in the README and the web page.