ctrlp.vim icon indicating copy to clipboard operation
ctrlp.vim copied to clipboard

Max depth?

Open AlexAllocated opened this issue 12 years ago • 1 comments

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!

AlexAllocated avatar Mar 04 '14 19:03 AlexAllocated

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

kien avatar Mar 05 '14 10:03 kien