add NERDTreeCustomIgnoreFilter hook

this gives users a chance to filter out nodes using whatever logic they
please
This commit is contained in:
Martin Grenfell 2012-01-04 11:11:12 +00:00
parent 1848a2cf9d
commit 33a64260cd
2 changed files with 5 additions and 0 deletions

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

View File

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