Use skiplist to filter the current directory
This commit is contained in:
parent
fd0d93476a
commit
2c77ba02a2
|
@ -204,6 +204,7 @@ function! s:show_dir(cnt) abort
|
||||||
endif
|
endif
|
||||||
for fname in split(glob('.\=*'))
|
for fname in split(glob('.\=*'))
|
||||||
if isdirectory(fname)
|
if isdirectory(fname)
|
||||||
|
\ || (exists('g:startify_skiplist') && s:is_in_skiplist(resolve(fnamemodify(fname, ':p'))))
|
||||||
continue
|
continue
|
||||||
endif
|
endif
|
||||||
call add(files, [getftime(fname), fname])
|
call add(files, [getftime(fname), fname])
|
||||||
|
|
|
@ -140,7 +140,8 @@ Example: let g:startify_bookmarks = [ '~/.vimrc' ]
|
||||||
|
|
||||||
let g:startify_skiplist = []
|
let g:startify_skiplist = []
|
||||||
|
|
||||||
A list of Vim regular expressions to filter recently used files.
|
A list of Vim regular expressions to filter recently used files and files in
|
||||||
|
the current directory.
|
||||||
|
|
||||||
Example: let g:startify_skiplist = [
|
Example: let g:startify_skiplist = [
|
||||||
\ 'COMMIT_EDITMSG',
|
\ 'COMMIT_EDITMSG',
|
||||||
|
|
Loading…
Reference in a new issue