Skip to content

Commit f6a570c

Browse files
phanenibhagwan
authored andcommitted
test: only :drop in on drop test
1 parent 79dba29 commit f6a570c

4 files changed

Lines changed: 53 additions & 53 deletions

tests/actions_spec.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ T["actions"]["vimcmd"] = new_set({
9191
local actions = {
9292
["ctrl-a"] = function(...)
9393
_G._fzf_info = FzfLua.get_info()
94-
require("fzf-lua.actions").vimcmd_entry("drop", ...)
94+
if action == "drop" then return require("fzf-lua.actions").vimcmd_entry("drop", ...) end
9595
return require("fzf-lua.actions")[action](...)
9696
end,
9797
}

tests/screenshots/tests-actions_spec.lua---actions---vimcmd---1-+-args-{-'file_open_in_background'-}

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
--|---------|---------|---------|---------|---------|---------|----
2-
01|MIT License
3-
02|
4-
03|Copyrig╭───────────────────── Grep ──────────────────────╮
5-
04| │> Copyright \(c\) -- LICENSE 1/1 (0) │
6-
05|Permiss│──────────────────────────────────────────────── │n obta
7-
06|ining a│ :: <ctrl-g> to Fuzzy Search │
8-
07|of this│▌ LICENSE:3:1:Copyright (c) 2021 iBhagwan │Softwa
9-
08|re"), t│ │
10-
09|in the │ │itatio
11-
10|n the r│ │
12-
11|to use,│ │se, an
13-
12|d/or se│ │
14-
13|copies ╰─────────────────────────────────────────────────╯Softwa
15-
14|re is ╭──────────────────── LICENSE ────────────────────╮
16-
15|furnish│ 1 MIT License
17-
16| │ 2
18-
17|The abo│ 3 Copyright (c) 2021 iBhagwan l be i
19-
18|ncluded│ 4 │
20-
19|copies │ 5 Permission is hereby granted, free of charge,│
21-
20| │ 6 of this software and associated documentation│
22-
21|THE SOF│ 7 in the Software without restriction, includin│KIND,
23-
22|EXPRESS╰─────────────────────────────────────────────────╯
24-
23|IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCH@@@
25-
24|LICENSE 1,1 Top
2+
01|
3+
02|~
4+
03|~ ╭───────────────────── Grep ──────────────────────╮
5+
04|~ │> Copyright \(c\) -- LICENSE 1/1 (0) │
6+
05|~ │──────────────────────────────────────────────── │
7+
06|~ │ :: <ctrl-g> to Fuzzy Search │
8+
07|~ │▌ LICENSE:3:1:Copyright (c) 2021 iBhagwan │
9+
08|~ │ │
10+
09|~ │ │
11+
10|~ │ │
12+
11|~ │ │
13+
12|~ │ │
14+
13|~ ╰─────────────────────────────────────────────────╯
15+
14|~ ╭──────────────────── LICENSE ────────────────────╮
16+
15|~ │ 1 MIT License
17+
16|~ │ 2
18+
17|~ │ 3 Copyright (c) 2021 iBhagwan
19+
18|~ │ 4 │
20+
19|~ │ 5 Permission is hereby granted, free of charge,│
21+
20|~ │ 6 of this software and associated documentation│
22+
21|~ │ 7 in the Software without restriction, includin│
23+
22|~ ╰─────────────────────────────────────────────────╯
24+
23|~
25+
24|[No Name] 0,0-1 All
2626
25|
2727
26|
2828
27|

tests/screenshots/tests-actions_spec.lua---actions---vimcmd---1-+-args-{-'file_split'-}

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@
1111
10|n the r│ │
1212
11|to use,│ │se,@@@
1313
12|LICENSE│ │ Top
14-
13|MIT Lic╰─────────────────────────────────────────────────╯
15-
14| ╭──────────────────── LICENSE ────────────────────╮
16-
15|Copyrig│ 1 MIT License
17-
16| │ 2
18-
17|Permiss│ 3 Copyright (c) 2021 iBhagwan n obta
19-
18|ining a│ 4 │
20-
19|of this│ 5 Permission is hereby granted, free of charge,│Softwa
21-
20|re"), t│ 6 of this software and associated documentation│
22-
21|in the │ 7 in the Software without restriction, includin│itatio
23-
22|n the r╰─────────────────────────────────────────────────╯
24-
23|to use, copy, modify, merge, publish, distribute, sublicense,@@@
25-
24|LICENSE 1,1 Top
14+
13| ╰─────────────────────────────────────────────────╯
15+
14|~ ╭──────────────────── LICENSE ────────────────────╮
16+
15|~ │ 1 MIT License
17+
16|~ │ 2
18+
17|~ │ 3 Copyright (c) 2021 iBhagwan
19+
18|~ │ 4 │
20+
19|~ │ 5 Permission is hereby granted, free of charge,│
21+
20|~ │ 6 of this software and associated documentation│
22+
21|~ │ 7 in the Software without restriction, includin│
23+
22|~ ╰─────────────────────────────────────────────────╯
24+
23|~
25+
24|[No Name] 0,0-1 All
2626
25|
2727
26|
2828
27|

tests/screenshots/tests-actions_spec.lua---actions---vimcmd---1-+-args-{-'file_vsplit'-}

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
--|---------|---------|---------|---------|---------|---------|----
2-
01|MIT License │MIT License
3-
02| │
4-
03|Copyrig╭───────────────────── Grep ──────────────────────╮an
2+
01|MIT License │
3+
02| │~
4+
03|Copyrig╭───────────────────── Grep ──────────────────────╮
55
04| │> Copyright \(c\) -- LICENSE 1/1 (0) │
6-
05|Permiss│──────────────────────────────────────────────── │ted, f
7-
06|ee of c│ :: <ctrl-g> to Fuzzy Search │son ob
6+
05|Permiss│──────────────────────────────────────────────── │
7+
06|ee of c│ :: <ctrl-g> to Fuzzy Search │
88
07|ining a│▌ LICENSE:3:1:Copyright (c) 2021 iBhagwan │
9-
08|of this│ │ciated
10-
09|documen│ │ "Soft
9+
08|of this│ │
10+
09|documen│ │
1111
10|re"), t│ │
12-
11|in the │ │estric
13-
12|ion, in│ │imitat
12+
11|in the │ │
13+
12|ion, in│ │
1414
13|n the r╰─────────────────────────────────────────────────╯
15-
14|to use,╭──────────────────── LICENSE ────────────────────╮ge, pu
16-
15|lish, d│ 1 MIT License ense,
15+
14|to use,╭──────────────────── LICENSE ────────────────────╮
16+
15|lish, d│ 1 MIT License
1717
16|d/or se│ 2
18-
17|copies │ 3 Copyright (c) 2021 iBhagwan nd to
19-
18|ermit p│ 4 │e Soft
18+
17|copies │ 3 Copyright (c) 2021 iBhagwan
19+
18|ermit p│ 4 │
2020
19|re is │ 5 Permission is hereby granted, free of charge,│
21-
20|furnish│ 6 of this software and associated documentation│ct to
21+
20|furnish│ 6 of this software and associated documentation│
2222
21|he foll│ 7 in the Software without restriction, includin│
2323
22| ╰─────────────────────────────────────────────────╯
24-
23|The above copyright notice an@@@│The above copyright notice a@@@
25-
24|LICENSE 1,1 Top LICENSE 1,1 Top
24+
23|The above copyright notice an@@@│~
25+
24|LICENSE 1,1 Top [No Name] 0,0-1 All
2626
25|
2727
26|
2828
27|

0 commit comments

Comments
 (0)