Browse Source

add NERDTreeCustomIgnoreFilter hook

this gives users a chance to filter out nodes using whatever logic they
please
refactor-open
Martin Grenfell 9 years ago
parent
commit
33a64260cd
2 changed files with 5 additions and 0 deletions
  1. +1
    -0
      doc/NERD_tree.txt
  2. +4
    -0
      plugin/NERD_tree.vim

+ 1
- 0
doc/NERD_tree.txt View File

@ -1128,6 +1128,7 @@ The latest dev versions are on github
Next
- add 'scope' argument to the key map API
- add NERDTreeCustomIgnoreFilter hook - needs doc
4.2.0
- Add NERDTreeDirArrows option to make the UI use pretty arrow chars


+ 4
- 0
plugin/NERD_tree.vim View File

@ -2306,6 +2306,10 @@ function! s:Path.ignore()
return 1
endif
if exists("*NERDTreeCustomIgnoreFilter") && NERDTreeCustomIgnoreFilter(self)
return 1
endif
return 0
endfunction


Loading…
Cancel
Save