File tree Expand file tree Collapse file tree 13 files changed +1411
-609
lines changed Expand file tree Collapse file tree 13 files changed +1411
-609
lines changed Original file line number Diff line number Diff line change 78
78
luarocks install luacov
79
79
luarocks install cluacov
80
80
luarocks install vusted
81
- fzfurl=https://github.com/junegunn/fzf/releases/download/0.43.0/fzf-0.43.0-linux_amd64.tar.gz
82
- fzftemp=fzf.zip
83
- curl -fLo "$fzftemp" $fzfurl && tar zxvf "$fzftemp" && rm "$fzftemp"
84
- chmod +x fzf
85
- export PATH="$PWD:$PATH"
81
+ git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
82
+ ~/.fzf/install
83
+ export PATH="$HOME/.fzf/bin:$PATH"
86
84
vusted --coverage --shuffle ./test
87
85
- name : Generate coverage reports
88
86
shell : bash
Original file line number Diff line number Diff line change @@ -358,21 +358,21 @@ Commands are named following below rules:
358
358
</thead >
359
359
<tbody >
360
360
<tr >
361
- <td>FzfxLiveGrep(U)</td>
361
+ <td>FzfxLiveGrep(B/ U)</td>
362
362
<td>N</td>
363
363
<td rowspan="4">Yes</td>
364
364
<td rowspan="4">Yes</td>
365
365
</tr >
366
366
<tr >
367
- <td>FzfxLiveGrep(U)V</td>
367
+ <td>FzfxLiveGrep(B/ U)V</td>
368
368
<td>V</td>
369
369
</tr >
370
370
<tr >
371
- <td>FzfxLiveGrep(U)W</td>
371
+ <td>FzfxLiveGrep(B/ U)W</td>
372
372
<td>N</td>
373
373
</tr >
374
374
<tr >
375
- <td>FzfxLiveGrep(U)P</td>
375
+ <td>FzfxLiveGrep(B/ U)P</td>
376
376
<td>N</td>
377
377
</tr >
378
378
</tbody >
Original file line number Diff line number Diff line change @@ -87,13 +87,13 @@ elseif metaopts.previewer_type == "command_list" then
87
87
return
88
88
end
89
89
90
- local async_spawn = shell_helpers .AsyncSpawn :make (cmd_splits , println ) --[[ @as AsyncSpawn ]]
90
+ local sp = shell_helpers .Spawn :make (cmd_splits , println ) --[[ @as Spawn ]]
91
91
shell_helpers .log_ensure (
92
- async_spawn ~= nil ,
92
+ sp ~= nil ,
93
93
" failed to open async command: %s" ,
94
94
vim .inspect (cmd_splits )
95
95
)
96
- async_spawn :run ()
96
+ sp :run ()
97
97
elseif metaopts .previewer_type == " list" then
98
98
local f = io.open (resultfile , " r" )
99
99
shell_helpers .log_ensure (
Original file line number Diff line number Diff line change @@ -109,13 +109,13 @@ then
109
109
return
110
110
end
111
111
112
- local async_spawn = shell_helpers .AsyncSpawn :make (cmd_splits , println ) --[[ @as AsyncSpawn ]]
112
+ local sp = shell_helpers .Spawn :make (cmd_splits , println ) --[[ @as Spawn ]]
113
113
shell_helpers .log_ensure (
114
- async_spawn ~= nil ,
114
+ sp ~= nil ,
115
115
" failed to open async command: %s" ,
116
116
vim .inspect (cmd_splits )
117
117
)
118
- async_spawn :run ()
118
+ sp :run ()
119
119
elseif metaopts .provider_type == " list" then
120
120
local reader = shell_helpers .FileLineReader :open (resultfile ) --[[ @as FileLineReader ]]
121
121
shell_helpers .log_ensure (
Original file line number Diff line number Diff line change @@ -38,24 +38,20 @@ local Cmd = {}
38
38
function Cmd :run (source )
39
39
local result = CmdResult :new ()
40
40
41
- local async_cmd = require (" fzfx.utils" ).AsyncSpawn :make (
42
- source ,
43
- function (line )
44
- if type (line ) == " string" then
45
- table.insert (result .stdout , line )
46
- end
47
- end ,
48
- function (line )
49
- if type (line ) == " string" then
50
- table.insert (result .stderr , line )
51
- end
41
+ local sp = require (" fzfx.spawn" ).Spawn :make (source , function (line )
42
+ if type (line ) == " string" then
43
+ table.insert (result .stdout , line )
44
+ end
45
+ end , function (line )
46
+ if type (line ) == " string" then
47
+ table.insert (result .stderr , line )
52
48
end
53
- ) --[[ @as AsyncSpawn ]]
54
- async_cmd :run ()
49
+ end ) --[[ @as Spawn ]]
50
+ sp :run ()
55
51
56
- if type (async_cmd .result ) == " table" then
57
- result .code = async_cmd .result .code
58
- result .signal = async_cmd .result .signal
52
+ if type (sp .result ) == " table" then
53
+ result .code = sp .result .code
54
+ result .signal = sp .result .signal
59
55
end
60
56
61
57
local o = {
You can’t perform that action at this time.
0 commit comments