cloudhead / neovim-fuzzy

Minimalistic fuzzy file finding for neovim
BSD 3-Clause "New" or "Revised" License
111 stars 17 forks source link

Also search hidden files? #30

Closed trusktr closed 10 months ago

trusktr commented 7 years ago

It seems to ignore hidden files by default. How can we make it also include hidden results? - Joe

insidewhy commented 7 years ago

Yeah this is also bothering me.

cloudhead commented 7 years ago

I'll add an option for this, it's trivial.

christophweegen commented 4 years ago

Any update on this? Thanks!

cloudhead commented 4 years ago

Well, I thought about it more; but the thing is this will search into your .git folder too, which will be pretty annoying, no? Can you explain your use-case, maybe I can come up with a nice solution if I understand the problem.

christophweegen commented 4 years ago

@cloudhead thanks for your answer!

One solution would be we could filter all paths that have .git as a path segment via regex. Not sure about performance in big directories, but this would solve the problem of having .git files in search results.

About performance: I also use fzy at the command line to switch to directories fastly. Since listing all the directories on your machine needs some seconds, I save them to a cache file where fzy can get its paths from instantly. Works like a charm. I just need to update this file from now and then if new directories were added.

Below are two bash functions I use for that. fb (mnemonic for "fzy build") builds a file with all dir path found in your home dir. This needs some seconds, but can be sped up a lot by ripgrep. Just added it with standard bash functions for easy try out. f pipes these file paths into fzy. This happens instantly and let you switch to a dir of your choice:

fb(){
  cd && find . -type d > ~/fuzzy.cache
}

f(){
  cd "$(cat ~/fuzzy.cache | fzy)"
}

Maybe this could give you some inspiration in case you run into performance problems while filtering unwanted file paths.

Thanks and best wishes

cloudhead commented 10 months ago

Fixed in #49