Provide ctrlp with a simple list of strings to search in.
Specify an action to perform on the selected string.
To see how it works, get the sample.vim from this branch and place it (along with the directories) somewhere in your runtimepath. Then put this into your vimrc, a new search type will show up when you open CtrlP:
let g:ctrlp_extensions = ['sample']Check out sample.vim for more details. For a list of extensions bundled with CtrlP, see :help ctrlp-extensions.