diff autoload/vimcrosoft/fzf.vim @ 5:bac97082e229

Add more caching to listing solution files.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 24 Oct 2019 11:16:11 -0700
parents 5d2c0db51914
children
line wrap: on
line diff
--- a/autoload/vimcrosoft/fzf.vim	Thu Oct 24 11:15:37 2019 -0700
+++ b/autoload/vimcrosoft/fzf.vim	Thu Oct 24 11:16:11 2019 -0700
@@ -12,8 +12,10 @@
 
 function! s:build_file_list_command(slnpath) abort
     let l:scriptpath = vimcrosoft#get_script_path('list_sln_files.py')
+    let l:list_cache_path = vimcrosoft#get_sln_cache_file('fzffilelist.txt')
     return 'python '.shellescape(l:scriptpath).
-                \' '.shellescape(a:slnpath)
-                \.' --cache '.shellescape(g:vimcrosoft_current_sln_cache)
+                \' '.shellescape(a:slnpath).
+                \' --cache '.shellescape(g:vimcrosoft_current_sln_cache).
+                \' --list-cache '.shellescape(l:list_cache_path)
 endfunction