Mercurial > vim-crosoft
annotate autoload/vimcrosoft/fzf.vim @ 15:cfcac4ed7d21 default tip
Improve loading of solution files
- New argument to force a rebuild of the cache
- Gracefully handle missing projects in a solution
- Handle more different xml namespaces
- Support more edge cases
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 29 Aug 2023 12:59:54 -0700 |
parents | bac97082e229 |
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 |