Mercurial > vim-crosoft
annotate 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 |
rev | line source |
---|---|
0 | 1 |
2 function! vimcrosoft#fzf#init() abort | |
3 endfunction | |
4 | |
5 function! vimcrosoft#fzf#on_sln_changed(slnpath) abort | |
6 let $FZF_DEFAULT_COMMAND = s:build_file_list_command(a:slnpath) | |
7 endfunction | |
8 | |
9 function! vimcrosoft#fzf#on_sln_cleared() abort | |
10 unlet $FZF_DEFAULT_COMMAND | |
11 endfunction | |
12 | |
13 function! s:build_file_list_command(slnpath) abort | |
14 let l:scriptpath = vimcrosoft#get_script_path('list_sln_files.py') | |
5
bac97082e229
Add more caching to listing solution files.
Ludovic Chabant <ludovic@chabant.com>
parents:
0
diff
changeset
|
15 let l:list_cache_path = vimcrosoft#get_sln_cache_file('fzffilelist.txt') |
0 | 16 return 'python '.shellescape(l:scriptpath). |
5
bac97082e229
Add more caching to listing solution files.
Ludovic Chabant <ludovic@chabant.com>
parents:
0
diff
changeset
|
17 \' '.shellescape(a:slnpath). |
bac97082e229
Add more caching to listing solution files.
Ludovic Chabant <ludovic@chabant.com>
parents:
0
diff
changeset
|
18 \' --cache '.shellescape(g:vimcrosoft_current_sln_cache). |
bac97082e229
Add more caching to listing solution files.
Ludovic Chabant <ludovic@chabant.com>
parents:
0
diff
changeset
|
19 \' --list-cache '.shellescape(l:list_cache_path) |
0 | 20 endfunction |
21 |