mirror of
https://github.com/preservim/nerdtree.git
synced 2025-02-07 20:35:14 +08:00
Merge pull request #303 from amarshall/wildignore
Add option to respect wildignore
This commit is contained in:
commit
186abb84c1
|
@ -635,6 +635,8 @@ NERD tree. These options should be set in your vimrc.
|
||||||
|
|
||||||
|'NERDTreeIgnore'| Tells the NERD tree which files to ignore.
|
|'NERDTreeIgnore'| Tells the NERD tree which files to ignore.
|
||||||
|
|
||||||
|
|'NERDTreeWildIgnore'| Tells the NERD tree to respect |'wildignore'|.
|
||||||
|
|
||||||
|'NERDTreeBookmarksFile'| Where the bookmarks are stored.
|
|'NERDTreeBookmarksFile'| Where the bookmarks are stored.
|
||||||
|
|
||||||
|'NERDTreeBookmarksSort'| Whether the bookmarks list is sorted on
|
|'NERDTreeBookmarksSort'| Whether the bookmarks list is sorted on
|
||||||
|
@ -824,6 +826,13 @@ line: >
|
||||||
The file filters can be turned on and off dynamically with the |NERDTree-f|
|
The file filters can be turned on and off dynamically with the |NERDTree-f|
|
||||||
mapping.
|
mapping.
|
||||||
|
|
||||||
|
------------------------------------------------------------------------------
|
||||||
|
*'NERDTreeWildIgnore'*
|
||||||
|
Values: 0 or 1.
|
||||||
|
Default: 0.
|
||||||
|
|
||||||
|
If set to 1, the |'wildignore'| setting is respected.
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
*'NERDTreeBookmarksFile'*
|
*'NERDTreeBookmarksFile'*
|
||||||
Values: a path
|
Values: a path
|
||||||
|
|
|
@ -228,7 +228,7 @@ function! s:TreeDirNode._initChildren(silent)
|
||||||
let dir = self.path
|
let dir = self.path
|
||||||
let globDir = dir.str({'format': 'Glob'})
|
let globDir = dir.str({'format': 'Glob'})
|
||||||
|
|
||||||
if version >= 703
|
if version >= 703 && g:NERDTreeWildIgnore
|
||||||
let filesStr = globpath(globDir, '*', 1) . "\n" . globpath(globDir, '.*', 1)
|
let filesStr = globpath(globDir, '*', 1) . "\n" . globpath(globDir, '.*', 1)
|
||||||
else
|
else
|
||||||
let filesStr = globpath(globDir, '*') . "\n" . globpath(globDir, '.*')
|
let filesStr = globpath(globDir, '*') . "\n" . globpath(globDir, '.*')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user