Ctrl-p can't find my file?

harris picture harris · Jul 4, 2013 · Viewed 8.1k times · Source

The following is my ctr-p config:

let g:ctrlp_map = '<Leader>t'
let g:ctrlp_match_window_bottom = 0
let g:ctrlp_match_window_reversed = 0
let g:ctrlp_working_path_mode = 'ra' 
let g:ctrlp_root_markers = ['.ctrlp']
let g:ctrlp_dotfiles = 0                                                                                                                                           
let g:ctrlp_switch_buffer = 0

I put one file .ctrlp in my project root directory.

I typed ,t and ,d to find my full filename "PhotoArtHacker" which's full path is 12083_cmcc_svn4456/mediatek/platform/mt6589/hardware/camera/hal/adapter/oppo/PhotoArtHacker.cpp.

while, I don't know why the file didn't appeared in the search result? Is my file depth too deep?

By the way, the android project contains thousands of files.

Answer

harris picture harris · Jul 5, 2013

I found a solution on the project's GitHub issues.

It looks that if you set the property:

let g:ctrlp_max_files=0

The problem will be solved.