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";
22
33import type { Denops } from "@denops/std" ;
44import 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" ;
66
77import type { Detail , DetailUnit } from "./item.ts" ;
88import type { Promish } from "./util/_typeutil.ts" ;
Original file line number Diff line number Diff line change @@ -8,27 +8,30 @@ import type {
88 Sorter ,
99 Theme ,
1010} from "@vim-fall/core" ;
11- import type { ItemPickerParams } from "@vim-fall/config/item-picker" ;
1211import {
1312 type Derivable ,
1413 type DerivableArray ,
1514 type DerivableMap ,
1615 derive ,
1716 deriveArray ,
1817 deriveMap ,
19- } from "@vim-fall/config /derivable" ;
18+ } from "@vim-fall/custom /derivable" ;
2019import { unnullish } from "@lambdalisue/unnullish" ;
2120
2221import { type Action , defineAction } from "../../action.ts" ;
2322import { fzf } from "../matcher/fzf.ts" ;
2423import { substring } from "../matcher/substring.ts" ;
2524import { regexp } from "../matcher/regexp.ts" ;
2625
26+ type Actions < T extends Detail = Detail , A extends string = string > =
27+ & Record < string , Action < T > >
28+ & { [ key in A ] : Action < T > } ;
29+
2730export type SubmatchOptions < T extends Detail , A extends string > = {
2831 /**
2932 * Actions available for the submatch picker.
3033 */
31- actions ?: DerivableMap < ItemPickerParams < T , A > [ "actions" ] > ;
34+ actions ?: DerivableMap < Actions < T , A > > ;
3235 /**
3336 * Default action to invoke.
3437 */
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ export type * from "@vim-fall/core/curator";
22
33import type { Denops } from "@denops/std" ;
44import 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" ;
66
77import type { Detail , IdItem } from "./item.ts" ;
88
Original file line number Diff line number Diff line change 122122 "@std/path" : " jsr:@std/path@^1.0.8" ,
123123 "@std/streams" : " jsr:@std/streams@^1.0.8" ,
124124 "@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 " ,
126126 "@vim-fall/core" : " jsr:@vim-fall/core@^0.2.1" ,
127127 "fzf" : " npm:fzf@^0.5.2"
128128 }
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ export type * from "@vim-fall/core/matcher";
33import type { Denops } from "@denops/std" ;
44import type { Detail , DetailUnit , IdItem } from "@vim-fall/core/item" ;
55import 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" ;
77
88/**
99 * 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";
22
33import type { Denops } from "@denops/std" ;
44import 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" ;
66
77import type { Detail , DetailUnit , PreviewItem } from "./item.ts" ;
88import type { Promish } from "./util/_typeutil.ts" ;
Original file line number Diff line number Diff line change 88 type Derivable ,
99 derive ,
1010 deriveArray ,
11- } from "@vim-fall/config /derivable" ;
11+ } from "@vim-fall/custom /derivable" ;
1212
1313import type { FlatType } from "./util/_typeutil.ts" ;
1414import 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";
22
33import type { Denops } from "@denops/std" ;
44import 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" ;
66
77import type { Detail , DetailUnit } from "./item.ts" ;
88
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ export type * from "@vim-fall/core/sorter";
22
33import type { Denops } from "@denops/std" ;
44import 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" ;
66
77import type { Detail , DetailUnit } from "./item.ts" ;
88
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ export type * from "@vim-fall/core/source";
22
33import type { Denops } from "@denops/std" ;
44import 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" ;
66
77import type { Detail , IdItem } from "./item.ts" ;
88
You can’t perform that action at this time.
0 commit comments