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

Can't find files in sub-repositories.

Open xiaoski opened this issue 7 years ago • 4 comments

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?

xiaoski avatar Sep 21 '17 09:09 xiaoski

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 avatar Oct 08 '17 23:10 tony

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

tony avatar Oct 08 '17 23:10 tony

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

tony avatar Oct 08 '17 23:10 tony

@tony Perfect, thank you!

zhouyanlt avatar Oct 26 '18 01:10 zhouyanlt