Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclusion via wildignore has side effects. #63

Closed
pda opened this issue Jan 3, 2012 · 3 comments
Closed

Exclusion via wildignore has side effects. #63

pda opened this issue Jan 3, 2012 · 3 comments

Comments

@pda
Copy link

pda commented Jan 3, 2012

Thanks for ctrlp.vim - it's great!

Your documentation suggests using wildignore to exclude files, which works, but has side effects. For example, adding .git to wildignore breaks Gdiff in fugitive.

I'm not sure if this should be fixed in fugutive or in ctrlp.vim, but it seems like adding a separate exclusion mechanism to ctrlp.vim would be a nice solution.

As another example use case, I'd like to exclude hidden files/directories from ctrlp.vim, but I'd still like to be able to tab complete :e ~/.vim/bundle/fugi... to edit vim plugins; wildignoring */.*/* seems to prevent that.

Let me know if there's anything I can do to help.

Cheers!
Paul

@kien
Copy link
Owner

kien commented Jan 3, 2012

Hi Paul,

There's a custom ignore option you can use: g:ctrlp_custom_ignore

Regarding the wildignore issue, some people may have .git in their wildignore and not just for ctrlp. In that case, it still breaks fugitive and there's nothing I can do to help it.

@kien kien closed this as completed Jan 3, 2012
@pda
Copy link
Author

pda commented Jan 3, 2012

Excellent - thanks, that's exactly what I was after.

Do you think it's worth updating the README to suggest g:ctrlp_custom_ignore as an alternative?

@kien
Copy link
Owner

kien commented Jan 3, 2012

Yes, certainly.

Thanks!

hail2u pushed a commit to hail2u/ctrlp.vim that referenced this issue Jan 9, 2012
* Allow running commands like `:diffthis` when opening multiple files.
* Add experimental extensions:
  + undo.vim (requires v7.3.005+)
  + rtscript.vim (find vimscripts in runtimepath)
* Include the workaround for <bs> and <c-h> for MS-Win. Resolve kien#62.
* Mention custom_ignore in readme and on the homepage. Resolve kien#63.
* Check the present of cwd in returned paths. Fix kien#64.
* Trigger Vim to remove cwd from display-names. Fix kien#65.
* Some internal changes and additions.
ludovicchabant pushed a commit to ludovicchabant/ctrlp.vim that referenced this issue Dec 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants