Yggdroot / LeaderF

An efficient fuzzy finder that helps to locate files, buffers, mrus, gtags, etc. on the fly for both vim and neovim.
Apache License 2.0
2.14k stars 180 forks source link

How to include files in files list, even if they are in gitignore #1043

Closed johnnadratowski closed 10 months ago

johnnadratowski commented 10 months ago

This is a feature request.

I always have my .env file in gitignore, as it contains passwords. However, I can never search for it now using the leaderf file command. I am requesting a way for leaderf to have an "includes" option. Perhaps a .leaderf-include file.

Yggdroot commented 10 months ago

Use Leaderf file --no-ignore.

johnnadratowski commented 10 months ago

The main problem with that is, for javascript projects, I get so many results from .node-modules. I was hoping to be able to keep those results off the list.

Yggdroot commented 10 months ago

https://github.com/Yggdroot/LeaderF/blob/2c85c8b160fb13d8af4fac3efbd6d48badf146cf/doc/leaderf.txt#L141-L165

You can set this option to exclude .node-modules.

johnnadratowski commented 10 months ago

Ah that's great! I thought that no-ignore would include wildignore. Thanks!