[ACCEPTED]-How to filter out files by extension in NERDTree?-nerdtree
You want the
NERDTreeIgnore option. For example, in your 2
let NERDTreeIgnore = ['\.pyc$']
NERDTreeIgnore is an array of regular expressions 1 that match the files you want to exclude.
Just ran into the problem: What about hiding 13 binary files that do not have an extension?
Can't 12 hide them, but can sort files to eliminate 11 some cheesy clutter. Problem looks like:
file1* file1.c file2* file2.c
file1.c file2.c file1* file2*
which 10 will sort first the files ending with ".c" (followed 9 by some other extension if you want). You 8 don't get rid of the binary files, but it 7 becomes manageable.
NERDTree has a mechanism 6 to detect and highlight files with the extra 5 execute bit, where
-rwxr-xr-x displays in bold with 4 a "*" at the end of the filename. It would 3 not be hard to add an extra mechanism to 2 hide executable files (useful for compiled 1 stuff, not so desirable for scripts).
More Related questions