kien/ctrlp.vim — Issue #152: user_command and custom_ignore
Author: lucapette
Created: 2012-03-04 17:45:26+00:00
State: open

I have the following in my configuration:

````viml
let g:ctrlp_custom_ignore = '\.git$\|\.log$\|\.png$\|\.jpg$'
let g:ctrlp_user_command = ['.git/', 'cd %s && git ls-files -c -o']
````

The files matching the custom_ignore regex are actually ignored if I'm not in a git project. Otherwise they are shown. Honestly, I can't say if it is the intended behaviour or it can be considered an issue.

I hate opening an issue without providing a pull-request or at least an insight for the code I think it's not working fine. But I'm not that good at VimL to understand what you're doing there ;) Is there any chance that the plugin doesn't use the custom_ignore while using a user_custom_command?

Of course, I tried to clear the cache (actually, that's the reason why I ended doing the previous pull-request). I don't know if there is something else I can do.

Thank you for any help.