Shougo / unite.vim

:dragon: Unite and create user interfaces
http://www.vim.org/scripts/script.php?script_id=3396
Other
2.85k stars 227 forks source link

Custom source not ignoring globs? #1237

Closed James-A1 closed 6 years ago

James-A1 commented 6 years ago

Problems summary

Unite file_rec/async still shows files from ignored globs (unite#custom#source ignore_globs) I followed the steps from the documentation (see vimrc) Note: ignore_pattern works

Environment Information

My minimal vimrc

set wildignore+=*/tmp/*,*.so,*.swp,*.zip,node_modules/*,vendor/*

call plug#begin()
Plug 'Shougo/vimproc.vim'
Plug 'Shougo/unite.vim'
call plug#end()

call unite#sources#rec#define()
call unite#custom#source('file_rec/async', 'ignore_globs',
            \ split(&wildignore, ','))

nnoremap <C-p> :Unite file_rec/async<cr>

Steps

  1. :Unite file_rec/async
  2. Ignored file still appear
Shougo commented 6 years ago

I have tested it in the minimal vimrc and it works. node_modules or so files are ignored.