I have a directory with multiple git repositories inside it. The structure looks like this.
All of these repositories are related here at work and I work in all of them on a regular basis. I created a keymapping so I could invoke CtrlP on the code directory instead of individual repositories.
noremap <C-a> :CtrlP ~/code/<CR>
It works great most of the time, but I'm encountering an issue. Given the following structure:
If I invoke <C-p> in that directory (and press f5 for good measure), search for "report-suite-selector" it finds the file just fine. If I invoke <C-a> (also pressing f5 after) and search for "report-suite-selector" it does not find the file at all. However, if I invoke <C-a> and search for "test-ctrlp-find" it will find that file.
After further investigation it looks like it hasn't indexed any files in any of the subdirectories under scripts. I can't even find that directory itself if I search using path mode.
Is there some setting that describes how deep CtrlP should look in the directory structure? If so, what's the default? I did find this line but if that's the setting I'm after then it's already set to 40 by default and code/repo2/featureA/app/scripts/angular/report-suite-selector is not even close to 40 steps deep.
Any advice is greatly appreciated :)
Keep up the awesome work!
You've probably reached the max_files limit. The default value is 15000.