New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ctrl-P excludes folders #313
Comments
Does your project use multiple git repositories nested inside each other? Are apps and spec in a different git repo, higher up the directory hierarchy to wherever you opened vim? |
You probably hit the max_files limit which is set to 10000 files. Try increasing it with the |
@kien, you nailed it. Thanks a lot. Closing the issue. So if you hit the max_files limit, what determines the files that will be included/excluded? |
There's no other condition. So naturally files that are in deeper directories have higher chance of being excluded. |
So I started running into this problem again and I figured out that the problem was due to ctrlp's ignore settings. I ended up putting the following in my .vimrc:
Doing so greatly improved the speed of ctrlp and the availability of files to search. This was at the advice of an HN Post. |
You might enjoy searching for "git ls-files" inside :help ctrlp. It can use only the files known by git, hg, ... |
@rizzatti I should have read that section long ago. Such a wonderful tip. Thanks! |
@rizzatti you just saved my ass 👍 |
When I run ctrl-p in my Rails projects, ctrl-p completely ignores my apps and specs folder. I've cleared my cache, but to no avail. Not sure what other information I should provide to you, so please point me in the right direction.
The text was updated successfully, but these errors were encountered: