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')
|
|
15 return 'python '.shellescape(l:scriptpath).
|
|
16 \' '.shellescape(a:slnpath)
|
|
17 \.' --cache '.shellescape(g:vimcrosoft_current_sln_cache)
|
|
18 endfunction
|
|
19
|