mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-26 10:14:20 +08:00
add NERDTreeCustomIgnoreFilter hook
this gives users a chance to filter out nodes using whatever logic they please
This commit is contained in:
parent
1848a2cf9d
commit
33a64260cd
|
@ -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
|
||||
|
|
|
@ -2306,6 +2306,10 @@ function! s:Path.ignore()
|
|||
return 1
|
||||
endif
|
||||
|
||||
if exists("*NERDTreeCustomIgnoreFilter") && NERDTreeCustomIgnoreFilter(self)
|
||||
return 1
|
||||
endif
|
||||
|
||||
return 0
|
||||
endfunction
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user