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

Cannot open files that are part of wildignore #24

Closed
kristijanhusak opened this issue Sep 27, 2018 · 0 comments
Closed

Cannot open files that are part of wildignore #24

kristijanhusak opened this issue Sep 27, 2018 · 0 comments

Comments

@kristijanhusak
Copy link
Contributor

Warning: I will close the issue without the minimal init.vim and the reproduction instructions.

Problems summary

Files and folders that are part of set wildignore cannot be opened.

Expected

Expected to be able to open it even if it's ignored.

Environment Information

  • defx version(SHA1): latest

  • OS: Linux mint 19

  • neovim/Vim version: NVIM v0.3.2-dev

  • :checkhealth or :CheckHealth result(neovim only):

health#defx#check
========================================================================
## defx.nvim
  - OK: has("python3") was successful
  - OK: Python 3.6.1+ was successful

Provide a minimal init.vim/vimrc with less than 50 lines (Required!)

" Your minimal init.vim/vimrc
set runtimepath+=~/path/to/defx.nvim/
autocmd FileType defx call s:defx_my_settings()

function! s:defx_my_settings() abort
	nnoremap <buffer><expr> <CR> defx#do_action('open')
endfunction

"It happened for me with node_modules, can be anything.
set wildignore=*my_ignored_folder/**

The reproduce ways from neovim/Vim starting (Required!)

  1. run :!mkdir my_ignored_folder && echo "testing" > my_ignored_folder/test.txt
  2. run :Defx
  3. navigate to folder my_ignored_folder
  4. Try to open test.txt with Enter

With min vimrc provided i don't get any errors, but in my full setup i get this:
error

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

1 participant