kien / ctrlp.vim

Fuzzy file, buffer, mru, tag, etc finder.
kien.github.com/ctrlp.vim
7.26k stars 676 forks source link

Can't find files in sub-repositories. #735

Open xiaoski opened 6 years ago

xiaoski commented 6 years ago

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

|+code/ |-repo1/ |--------|repo11/ |--------|--------repo111/ |+repo2/ |+repo3/

I set root path to code/ . And then, I can only find files in code/ , repo1/ , repo2/ and repo3/. How can I find files in repo11 or repo111 by ctrlP?

tony commented 6 years ago

I recently split off a directory into.a git submodule

And now I'm in hell. All the files in the submodule are no longer seen in ctrlp search when I load from the main repo.

tony commented 6 years ago

@klen / anyone else: Any idea what config combination could get git submodules searching files as if they were just a subdirectory?

tony commented 6 years ago

To Anybody reading this:

Want to show git submodule files in in ctrlp? Have Git 2.11+?

Change your g:ctrlp_user_command from git ls-files to git ls-files --recurse-submodules

zhouyanlt commented 5 years ago

@tony Perfect, thank you!