File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,10 @@ export type QuickfixOptions = {
40
40
* Command to execute after setting the quickfix list.
41
41
*/
42
42
after ?: string ;
43
+ /**
44
+ * Whether to keep the picker window open after setting the quickfix list.
45
+ */
46
+ continue ?: boolean ;
43
47
} ;
44
48
45
49
/**
@@ -53,7 +57,7 @@ export function quickfix(
53
57
) : Action < Detail > {
54
58
const what = options . what ?? { } ;
55
59
const action = options . action ?? " " ;
56
- const after = options . after ?? "copen " ;
60
+ const after = options . after ?? "" ;
57
61
58
62
return defineAction < Detail > (
59
63
async ( denops , { selectedItems, filteredItems } , { signal } ) => {
@@ -85,6 +89,9 @@ export function quickfix(
85
89
signal ?. throwIfAborted ( ) ;
86
90
await denops . cmd ( after ) ;
87
91
}
92
+ if ( options . continue ) {
93
+ return true ;
94
+ }
88
95
} ,
89
96
) ;
90
97
}
@@ -94,6 +101,8 @@ export function quickfix(
94
101
*/
95
102
export const defaultQuickfixActions : {
96
103
quickfix : Action < Detail > ;
104
+ "quickfix:copen" : Action < Detail > ;
97
105
} = {
98
- quickfix : quickfix ( ) ,
106
+ quickfix : quickfix ( { continue : true } ) ,
107
+ "quickfix:copen" : quickfix ( { after : "copen" } ) ,
99
108
} ;
You can’t perform that action at this time.
0 commit comments