Change bookmarkdir's cache
This commit is contained in:
parent
43915113db
commit
863996ce26
@ -221,7 +221,8 @@ fu! ctrlp#clra()
|
|||||||
let cache_dir = ctrlp#utils#cachedir()
|
let cache_dir = ctrlp#utils#cachedir()
|
||||||
if isdirectory(cache_dir)
|
if isdirectory(cache_dir)
|
||||||
let cache_files = split(s:glbpath(cache_dir, '**', 1), "\n")
|
let cache_files = split(s:glbpath(cache_dir, '**', 1), "\n")
|
||||||
let eval = '!isdirectory(v:val) && v:val !~ ''\<cache\.txt$\|\.log$'''
|
let eval = '!isdirectory(v:val) && fnamemodify(v:val, ":t") !~'
|
||||||
|
\ . ' ''\v^<cache>[.a-z]+$|\.log$'''
|
||||||
sil! cal map(filter(cache_files, eval), 'delete(v:val)')
|
sil! cal map(filter(cache_files, eval), 'delete(v:val)')
|
||||||
en
|
en
|
||||||
cal ctrlp#clr()
|
cal ctrlp#clr()
|
||||||
|
@ -34,8 +34,8 @@ endf
|
|||||||
|
|
||||||
fu! s:cachefile()
|
fu! s:cachefile()
|
||||||
if !exists('s:cadir') || !exists('s:cafile')
|
if !exists('s:cadir') || !exists('s:cafile')
|
||||||
let s:cadir = ctrlp#utils#cachedir().ctrlp#utils#lash().'bookmark'
|
let s:cadir = ctrlp#utils#cachedir().ctrlp#utils#lash().'bkd'
|
||||||
let s:cafile = s:cadir.ctrlp#utils#lash().'dir.txt'
|
let s:cafile = s:cadir.ctrlp#utils#lash().'cache.txt'
|
||||||
en
|
en
|
||||||
retu s:cafile
|
retu s:cafile
|
||||||
endf
|
endf
|
||||||
|
Loading…
x
Reference in New Issue
Block a user