cloudhead / neovim-fuzzy

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

Is it possible to enable finding "hidden" files? #12

Closed gfairchild closed 11 months ago

gfairchild commented 8 years ago

When I bring up the finder, how can I enable finding "hidden" files? For example, if I have a file named .config, it currently doesn't appear in my search results if I search for "config". Is there a way to enable this?

cloudhead commented 8 years ago

I think I'm going to enable this by default, as it seems to still respect .gitignore and doesn't search in .git directories.

gfairchild commented 8 years ago

Sounds good to me. I like respecting .gitignore and ignoring .git directories.

cloudhead commented 8 years ago

Here we go: https://github.com/cloudhead/neovim-fuzzy/commit/b9242e3c33223e2556e5ab4e71daeb77c945af74 (in current master)

Try it out and let me know.

gfairchild commented 8 years ago

Just updated. Looks like it is including the stuff in .git but is ignoring files specified in .gitignore.

screen shot 2016-10-26 at 11 20 24 am

screen shot 2016-10-26 at 11 20 32 am

cloudhead commented 8 years ago

Ah yes, it's because I have a .ignore file in my home directory with .git/ in it. You can do that for now, but I'm going to probably turn this into an option instead of default.

gfairchild commented 8 years ago

Having that as an option seems smart. I have dozens of git projects, and it would be nice to have a global option to turn it off for all projects.

gfairchild commented 8 years ago

And actually, now that I think about it, it may actually be nice to have several options:

Having fine-grained control over each of these options would be nice.

cloudhead commented 8 years ago

I think what I'll do is expose a fuzzy#open function that can be called with a few options, then you can either use the default FuzzyOpen, or create a new command and pass whatever options you want to the open function.

cloudhead commented 8 years ago

I'm reverting the change for now and will look into this soon.

gfairchild commented 8 years ago

Sounds reasonable. Thanks!

1ak31sha commented 6 years ago

i would like the option to find hidden/dotfiles. is it available?

cloudhead commented 11 months ago

Fixed in #49