Max depth? #538

Closed
chevex opened this Issue Mar 4, 2014 · 1 comment

Comments

Projects
None yet
2 participants

chevex commented Mar 4, 2014

I have a directory with multiple git repositories inside it. The structure looks like this.

code/
    repo1/
    repo2/
    repo3/
    repo4/

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:

code/
    repo1/
    repo2/
        featureA/
            app/
                scripts/
                    morestuff/
                    angular/
                        script1.js
                        script2.js
                        script3.js
                        report-suite-selector.js
                        script5.js
                    test-ctrlp-find.js
    repo3/
    repo4/

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!

Owner

kien commented Mar 5, 2014

You've probably reached the max_files limit. The default value is 15000.

chevex closed this Aug 27, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment