File tree Expand file tree Collapse file tree 10 files changed +15
-12
lines changed Expand file tree Collapse file tree 10 files changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ export type * from "@vim-fall/core/action";
2
2
3
3
import type { Denops } from "@denops/std" ;
4
4
import type { Action , InvokeParams } from "@vim-fall/core/action" ;
5
- import { type DerivableArray , deriveArray } from "@vim-fall/config /derivable" ;
5
+ import { type DerivableArray , deriveArray } from "@vim-fall/custom /derivable" ;
6
6
7
7
import type { Detail , DetailUnit } from "./item.ts" ;
8
8
import type { Promish } from "./util/_typeutil.ts" ;
Original file line number Diff line number Diff line change @@ -8,27 +8,30 @@ import type {
8
8
Sorter ,
9
9
Theme ,
10
10
} from "@vim-fall/core" ;
11
- import type { ItemPickerParams } from "@vim-fall/config/item-picker" ;
12
11
import {
13
12
type Derivable ,
14
13
type DerivableArray ,
15
14
type DerivableMap ,
16
15
derive ,
17
16
deriveArray ,
18
17
deriveMap ,
19
- } from "@vim-fall/config /derivable" ;
18
+ } from "@vim-fall/custom /derivable" ;
20
19
import { unnullish } from "@lambdalisue/unnullish" ;
21
20
22
21
import { type Action , defineAction } from "../../action.ts" ;
23
22
import { fzf } from "../matcher/fzf.ts" ;
24
23
import { substring } from "../matcher/substring.ts" ;
25
24
import { regexp } from "../matcher/regexp.ts" ;
26
25
26
+ type Actions < T extends Detail = Detail , A extends string = string > =
27
+ & Record < string , Action < T > >
28
+ & { [ key in A ] : Action < T > } ;
29
+
27
30
export type SubmatchOptions < T extends Detail , A extends string > = {
28
31
/**
29
32
* Actions available for the submatch picker.
30
33
*/
31
- actions ?: DerivableMap < ItemPickerParams < T , A > [ "actions" ] > ;
34
+ actions ?: DerivableMap < Actions < T , A > > ;
32
35
/**
33
36
* Default action to invoke.
34
37
*/
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ export type * from "@vim-fall/core/curator";
2
2
3
3
import type { Denops } from "@denops/std" ;
4
4
import type { CurateParams , Curator } from "@vim-fall/core/curator" ;
5
- import { type DerivableArray , deriveArray } from "@vim-fall/config /derivable" ;
5
+ import { type DerivableArray , deriveArray } from "@vim-fall/custom /derivable" ;
6
6
7
7
import type { Detail , IdItem } from "./item.ts" ;
8
8
Original file line number Diff line number Diff line change 122
122
"@std/path" : " jsr:@std/path@^1.0.8" ,
123
123
"@std/streams" : " jsr:@std/streams@^1.0.8" ,
124
124
"@std/testing" : " jsr:@std/testing@^1.0.4" ,
125
- "@vim-fall/config " : " jsr:@vim-fall/config @^0.17.3 " ,
125
+ "@vim-fall/custom " : " jsr:@vim-fall/custom @^0.1.0 " ,
126
126
"@vim-fall/core" : " jsr:@vim-fall/core@^0.2.1" ,
127
127
"fzf" : " npm:fzf@^0.5.2"
128
128
}
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ export type * from "@vim-fall/core/matcher";
3
3
import type { Denops } from "@denops/std" ;
4
4
import type { Detail , DetailUnit , IdItem } from "@vim-fall/core/item" ;
5
5
import type { Matcher , MatchParams } from "@vim-fall/core/matcher" ;
6
- import { type DerivableArray , deriveArray } from "@vim-fall/config /derivable" ;
6
+ import { type DerivableArray , deriveArray } from "@vim-fall/custom /derivable" ;
7
7
8
8
/**
9
9
* Defines a matcher that filters items based on a query.
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ export type * from "@vim-fall/core/previewer";
2
2
3
3
import type { Denops } from "@denops/std" ;
4
4
import type { Previewer , PreviewParams } from "@vim-fall/core/previewer" ;
5
- import { type DerivableArray , deriveArray } from "@vim-fall/config /derivable" ;
5
+ import { type DerivableArray , deriveArray } from "@vim-fall/custom /derivable" ;
6
6
7
7
import type { Detail , DetailUnit , PreviewItem } from "./item.ts" ;
8
8
import type { Promish } from "./util/_typeutil.ts" ;
Original file line number Diff line number Diff line change 8
8
type Derivable ,
9
9
derive ,
10
10
deriveArray ,
11
- } from "@vim-fall/config /derivable" ;
11
+ } from "@vim-fall/custom /derivable" ;
12
12
13
13
import type { FlatType } from "./util/_typeutil.ts" ;
14
14
import type { Detail , DetailUnit } from "./item.ts" ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ export type * from "@vim-fall/core/renderer";
2
2
3
3
import type { Denops } from "@denops/std" ;
4
4
import type { Renderer , RenderParams } from "@vim-fall/core/renderer" ;
5
- import { type DerivableArray , deriveArray } from "@vim-fall/config /derivable" ;
5
+ import { type DerivableArray , deriveArray } from "@vim-fall/custom /derivable" ;
6
6
7
7
import type { Detail , DetailUnit } from "./item.ts" ;
8
8
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ export type * from "@vim-fall/core/sorter";
2
2
3
3
import type { Denops } from "@denops/std" ;
4
4
import type { Sorter , SortParams } from "@vim-fall/core/sorter" ;
5
- import { type DerivableArray , deriveArray } from "@vim-fall/config /derivable" ;
5
+ import { type DerivableArray , deriveArray } from "@vim-fall/custom /derivable" ;
6
6
7
7
import type { Detail , DetailUnit } from "./item.ts" ;
8
8
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ export type * from "@vim-fall/core/source";
2
2
3
3
import type { Denops } from "@denops/std" ;
4
4
import type { CollectParams , Source } from "@vim-fall/core/source" ;
5
- import { type DerivableArray , deriveArray } from "@vim-fall/config /derivable" ;
5
+ import { type DerivableArray , deriveArray } from "@vim-fall/custom /derivable" ;
6
6
7
7
import type { Detail , IdItem } from "./item.ts" ;
8
8
You can’t perform that action at this time.
0 commit comments