Closed gfairchild closed 11 months 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.
Sounds good to me. I like respecting .gitignore
and ignoring .git
directories.
Here we go: https://github.com/cloudhead/neovim-fuzzy/commit/b9242e3c33223e2556e5ab4e71daeb77c945af74 (in current master)
Try it out and let me know.
Just updated. Looks like it is including the stuff in .git
but is ignoring files specified in .gitignore
.
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.
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.
And actually, now that I think about it, it may actually be nice to have several options:
.git
. This is useful for people that care about including .git
in their search results..gitignore
. I have several projects where I use .gitignore
to ignore files containing secrets (keys, passwords, etc.). I don't want these files tracked in git, but it is definitely useful to occasionally open them in vim.Having fine-grained control over each of these options would be nice.
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.
I'm reverting the change for now and will look into this soon.
Sounds reasonable. Thanks!
i would like the option to find hidden/dotfiles. is it available?
Fixed in #49
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?