Skip to content

Commit 335beea

Browse files
committed
feat: follow the latest changes
1 parent 542b944 commit 335beea

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

action/mr_delete.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
import type { Denops } from "@denops/std";
22
import { type Action, defineAction } from "@vim-fall/std/action";
33

4-
// MR (Most Recently Used, Written, Repositories, Directories) type options
5-
type MrType = "mru" | "mrw" | "mrr" | "mrd";
6-
7-
// Detail type that represents the file path
84
type Detail = {
95
path: string;
106
mr: {
117
type: MrType;
128
};
139
};
1410

11+
// MR (Most Recently Used, Written, Repositories, Directories) type options
12+
type MrType = "mru" | "mrw" | "mrr" | "mrd";
13+
1514
/**
1615
* Deletes a file from the MR (Most Recently Used, Written, Repositories, or Directories) list.
1716
*

matcher/kensaku.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { defineMatcher, type Matcher } from "@vim-fall/std/matcher";
1212
* @template T The type of items being matched.
1313
* @returns A matcher function that performs the search and highlights matching portions.
1414
*/
15-
export function kensaku<T>(): Matcher<T> {
15+
export function kensaku(): Matcher {
1616
return defineMatcher(async function* (denops, { query, items }, { signal }) {
1717
// Split the query into individual terms, transform them using `vim-kensaku`,
1818
// and create regex patterns from them.

source/mr.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
11
import type { Denops } from "@denops/std";
22
import { defineSource, type Source } from "@vim-fall/std/source";
33

4-
// MR (Most Recently Used, Written, Repositories, Directories) type options
5-
type MrType = "mru" | "mrw" | "mrr" | "mrd";
6-
7-
// Detail type that represents the file path
84
type Detail = {
95
path: string;
106
mr: {
117
type: MrType;
128
};
139
};
1410

11+
export type MrOptions = {
12+
/** MR (Most Recently Used, Written, Repositories, Directories) type options */
13+
type?: MrType;
14+
};
15+
16+
// MR (Most Recently Used, Written, Repositories, Directories) type options
17+
type MrType = "mru" | "mrw" | "mrr" | "mrd";
18+
1519
// This function defines a source for MRU/MRW/MRR/MRD files using the vim-mr plugin
16-
export function mr(options: { type?: MrType } = {}): Source<Detail> {
20+
export function mr(options: MrOptions = {}): Source<Detail> {
1721
const type = options.type ?? "mru"; // Default to MRU files
1822
return defineSource(async function* (denops) {
1923
let id = 0;

0 commit comments

Comments
 (0)